Skip to content

Commit

Permalink
refactor: use hostname for signing
Browse files Browse the repository at this point in the history
  • Loading branch information
d-goog committed Feb 5, 2024
1 parent c439bca commit 01f95e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export class URLSigner {
const fqdn = new url.URL(
config.host?.toString() || config.cname || this.storage.apiEndpoint
);
extensionHeaders.host = fqdn.host;
extensionHeaders.host = fqdn.hostname;
if (config.contentMd5) {
extensionHeaders['content-md5'] = config.contentMd5;
}
Expand Down

0 comments on commit 01f95e9

Please sign in to comment.