]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
S3Website: AmazonS3 changed RedirectAll HTTP response.
authorRobin H. Johnson <robin.johnson@dreamhost.com>
Thu, 7 Jan 2016 01:35:16 +0000 (01:35 +0000)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 19 Jan 2016 23:58:32 +0000 (15:58 -0800)
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
src/rgw/rgw_website.cc

index eee8977a86f94d546fde42e8a4b16308e2e77954..a69ffe16d298177274906464bdb128cbbc14083c 100644 (file)
@@ -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)) {