mirror of
https://github.com/harness/drone.git
synced 2025-05-21 03:20:15 +08:00
fix: [CODE-2728]: fix webhook internal url to not read from db (#2985)
* fix: [CODE-2728]: fix webhook internal url to not read from db
This commit is contained in:
parent
321491057a
commit
c7d9a9d69c
@ -328,7 +328,7 @@ func (s *Service) prepareHTTPRequest(ctx context.Context, execution *types.Webho
|
||||
execution.Retriggerable = true
|
||||
|
||||
// create request (url + body)
|
||||
req, err := http.NewRequestWithContext(ctx, http.MethodPost, webhook.URL, bBuff)
|
||||
req, err := http.NewRequestWithContext(ctx, http.MethodPost, url, bBuff)
|
||||
if err != nil {
|
||||
// ASSUMPTION: there was an issue with the static user input, not retriable
|
||||
tErr := fmt.Errorf("failed to create request: %w", err)
|
||||
|
Loading…
Reference in New Issue
Block a user