Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add virtual hosted-style support for signurl gen. #6183

Merged
merged 9 commits into from
Oct 1, 2019
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ private SignatureInfo(Builder builder) {
this.accountEmail = builder.accountEmail;
this.timestamp = builder.timestamp;

// The "host" header only needs to be present and signed if using V4.
if (Storage.SignUrlOption.SignatureVersion.V4.equals(signatureVersion)
&& (!builder.canonicalizedExtensionHeaders.containsKey("host"))) {
canonicalizedExtensionHeaders =
Expand Down