Skip to content

Commit

Permalink
Set content header to gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed Feb 7, 2024
1 parent c9a1e8d commit c7b09a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/app/reports/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ func SendReportToAPI(reportsAPIEndpoint string, compressedJson []byte, jwt strin

// Set content type to be gzip as report will be compressed
req.Header.Set("Content-Type", "application/gzip")
// Set content encoding to gzip
req.Header.Set("Content-Encoding", "gzip")

// Add JWT token to request
req.Header.Set("Authorization", "Bearer " + jwt)
Expand Down

0 comments on commit c7b09a9

Please sign in to comment.