Skip to content

Commit

Permalink
Add Content-Length to request header
Browse files Browse the repository at this point in the history
  • Loading branch information
infamousjoeg committed Dec 5, 2023
1 parent 5211b01 commit 36787e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cybr/helpers/httpjson/httpjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func getResponse(identity bool, url string, method string, token string, body in
// attach the header
req.Header = make(http.Header)
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Content-Length", "0")
if identity {
req.Header.Add("X-IDAP-NATIVE-CLIENT", "true")
}
Expand Down

0 comments on commit 36787e7

Please sign in to comment.