Skip to content

Commit

Permalink
SECURITY-9304: fix host with port in presigned url
Browse files Browse the repository at this point in the history
Co-authored-by: Dora Kaszasne Sztanko <[email protected]>
  • Loading branch information
knagy and Dora Kaszasne Sztanko committed Feb 29, 2024
1 parent 36eb2a3 commit 146a44b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion escherauth/escherauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def presign_url(self, url, expires):
request = EscherRequest({
'method': 'GET',
'url': f'{parts.path}?{parts.query}',
'headers': [['host', parts.hostname]],
'headers': [['host', parts.netloc]],
})
request.set_presigned_url(True)
signature = self.generate_signature(self.api_secret, request, ['host'], current_time)
Expand Down
2 changes: 1 addition & 1 deletion test-cases

0 comments on commit 146a44b

Please sign in to comment.