Skip to content

Commit 9b1b93e

Browse files
committed
Refactor header management in httpclient_request.go
1 parent dae598f commit 9b1b93e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

httpclient/httpclient_request.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,9 @@ func (c *Client) DoMultipartRequest(method, endpoint string, fields map[string]s
439439
headerManager := NewHeaderManager(req, log, c.APIHandler, c.Token)
440440

441441
// Use HeaderManager to set headers
442-
headerManager.SetContentType(contentType) // Content-Type from MarshalMultipartRequest
443-
headerManager.SetRequestHeaders(endpoint) // Set other standard headers
442+
headerManager.SetContentType(contentType)
443+
headerManager.SetRequestHeaders(endpoint)
444+
headerManager.LogHeaders(c)
444445

445446
// Execute the request
446447
resp, err := c.executeHTTPRequest(req, log, method, endpoint)

0 commit comments

Comments
 (0)