Skip to content

Commit

Permalink
Merge pull request #1974 from christianvogt/content-length
Browse files Browse the repository at this point in the history
fix proxy call content-length header for encoded characters in payload
  • Loading branch information
openshift-ci[bot] authored Oct 17, 2023
2 parents 1c39077 + 4855c5f commit a6ed633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/utils/httpUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const proxyCall = (
requestOptions.headers = {
...requestOptions.headers,
'Content-Type': contentType,
'Content-Length': requestData.length,
'Content-Length': Buffer.byteLength(requestData, 'utf8'),
};
}

Expand Down

0 comments on commit a6ed633

Please sign in to comment.