Skip to content

Commit ad5e188

Browse files
committed
incrased ctx timeout
1 parent 974d556 commit ad5e188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpclient/multipartrequest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
// DoMultiPartRequest creates and executes a multipart/form-data HTTP request for file uploads and form fields.
2727
func (c *Client) DoMultiPartRequest(method, endpoint string, files map[string][]string, params map[string]string, contentTypes map[string]string, headersMap map[string]http.Header, out interface{}) (*http.Response, error) {
2828
log := c.Logger
29-
ctx, cancel := context.WithCancel(context.Background())
29+
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
3030
defer cancel() // Ensure the context is canceled when the function returns
3131

3232
// Ensure the method is supported

0 commit comments

Comments
 (0)