File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,10 +95,10 @@ func Deliver(t *webhook_model.HookTask) error {
95
95
return err
96
96
}
97
97
default :
98
- return fmt .Errorf ("Invalid http method for webhook: [%d] %v" , t .ID , w .HTTPMethod )
98
+ return fmt .Errorf ("invalid http method for webhook: [%d] %v" , t .ID , w .HTTPMethod )
99
99
}
100
100
default :
101
- return fmt .Errorf ("Invalid http method for webhook: [%d] %v" , t .ID , w .HTTPMethod )
101
+ return fmt .Errorf ("invalid http method for webhook: [%d] %v" , t .ID , w .HTTPMethod )
102
102
}
103
103
104
104
var signatureSHA1 string
@@ -169,10 +169,10 @@ func Deliver(t *webhook_model.HookTask) error {
169
169
}()
170
170
171
171
if setting .DisableWebhooks {
172
- return fmt .Errorf ("Webhook task skipped (webhooks disabled): [%d]" , t .ID )
172
+ return fmt .Errorf ("webhook task skipped (webhooks disabled): [%d]" , t .ID )
173
173
}
174
174
175
- resp , err := webhookHTTPClient .Do (req )
175
+ resp , err := webhookHTTPClient .Do (req . WithContext ( graceful . GetManager (). ShutdownContext ()) )
176
176
if err != nil {
177
177
t .ResponseInfo .Body = fmt .Sprintf ("Delivery: %v" , err )
178
178
return err
You can’t perform that action at this time.
0 commit comments