From: Robin H. Johnson Date: Thu, 7 Jan 2016 01:35:16 +0000 (+0000) Subject: S3Website: AmazonS3 changed RedirectAll HTTP response. X-Git-Tag: v10.0.4~152^2^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9bdbb1bbac88f1143930fb1d6b84af5685bd7280;p=ceph.git S3Website: AmazonS3 changed RedirectAll HTTP response. Signed-off-by: Robin H. Johnson --- diff --git a/src/rgw/rgw_website.cc b/src/rgw/rgw_website.cc index eee8977a86f..a69ffe16d29 100644 --- a/src/rgw/rgw_website.cc +++ b/src/rgw/rgw_website.cc @@ -94,7 +94,7 @@ bool RGWBucketWebsiteConf::should_redirect(const string& key, const int http_err if(!redirect_all.hostname.empty()) { RGWBWRoutingRule redirect_all_rule; redirect_all_rule.redirect_info.redirect = redirect_all; - redirect_all.http_redirect_code = 302; + redirect_all.http_redirect_code = 301; *redirect = redirect_all_rule; return true; } else if (!routing_rules.check_key_and_error_code_condition(key, http_error_code, &rule)) {