Skip to content

Commit

Permalink
Merge pull request #6038 from jeniawhite/evgb-FixingWebsiteRedirect
Browse files Browse the repository at this point in the history
Website redirection fix
  • Loading branch information
jeniawhite authored Jun 1, 2020
2 parents 9ff6db3 + 809f860 commit 3e4c1c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/endpoint/s3/s3_rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ async function _get_redirection_bucket(req, bucket) {
const redirect = bucket_website_info.website_configuration.redirect_all_requests_to;
if (redirect) {
const dest = redirect.host_name;
const protocol = redirect.protocol || req.secure ? 'https' : 'http';
return `${protocol}//${dest}`;
const protocol = redirect.protocol || (req.secure ? 'https' : 'http');
return `${protocol.toLowerCase()}://${dest}`;
}
}

Expand Down

0 comments on commit 3e4c1c1

Please sign in to comment.