Skip to content

Commit 3b0b9b4

Browse files
committed
added req printout for multipart
1 parent 2c811d9 commit 3b0b9b4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

httpclient/multipartrequest.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package httpclient
33
import (
44
"context"
55
"encoding/base64"
6+
"encoding/json"
67
"fmt"
78
"io"
89
"mime/multipart"
@@ -119,6 +120,12 @@ func (c *Client) DoMultiPartRequest(method, endpoint string, files map[string][]
119120
req.Header.Set("Content-Type", contentType)
120121

121122
startTime := time.Now()
123+
124+
// Debugging
125+
jsonData, _ := json.MarshalIndent(req, "", " ")
126+
c.Sugar.Debug("LOGHERE")
127+
c.Sugar.Debug(string(jsonData))
128+
122129
resp, requestErr := c.http.Do(req)
123130
duration := time.Since(startTime)
124131

0 commit comments

Comments
 (0)