Skip to content

Commit

Permalink
Adding gzip headers to reduce payload sizes and enable compression
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjjung committed Oct 18, 2024
1 parent 27518a2 commit 69c1fbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ export default class APIClient {
objKeysToSnakeCase(optionParams.body, ['metadata']) // metadata should remain as is
);
requestOptions.headers['Content-Type'] = 'application/json';
requestOptions.headers['Accept-Encoding'] = 'gzip';
}

if (optionParams.form) {
Expand Down

0 comments on commit 69c1fbd

Please sign in to comment.