We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 974d556 commit ad5e188Copy full SHA for ad5e188
httpclient/multipartrequest.go
@@ -26,7 +26,7 @@ import (
26
// DoMultiPartRequest creates and executes a multipart/form-data HTTP request for file uploads and form fields.
27
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) {
28
log := c.Logger
29
- ctx, cancel := context.WithCancel(context.Background())
+ ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
30
defer cancel() // Ensure the context is canceled when the function returns
31
32
// Ensure the method is supported
0 commit comments