We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a0798f commit 53927c5Copy full SHA for 53927c5
1 file changed
remote.go
@@ -67,6 +67,9 @@ func newRequest(method string, url string, data []byte) (*http.Request, error) {
67
if err != nil {
68
return nil, err
69
}
70
+ if data != nil {
71
+ request.Header.Add("Content-Type", jsonContentType)
72
+ }
73
request.Header.Add("Accept", jsonContentType)
74
75
return request, nil
0 commit comments