From: Yehuda Sadeh Date: Wed, 2 Nov 2016 22:55:34 +0000 (-0700) Subject: rgw: support for x-robots-tag header X-Git-Tag: v11.1.0~441^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ca1be285f97c6efa2f8aa2cebaf360abb64b78f4;p=ceph.git rgw: support for x-robots-tag header Fixes: http://tracker.ceph.com/issues/17790 Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index 1c486028fd50..7a88669208c2 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -83,6 +83,7 @@ using ceph::crypto::MD5; /* Information whether an object is SLO or not must be exposed to * user through custom HTTP header named X-Static-Large-Object. */ #define RGW_ATTR_SLO_UINDICATOR RGW_ATTR_META_PREFIX "static-large-object" +#define RGW_ATTR_X_ROBOTS_TAG RGW_ATTR_PREFIX "x-robots-tag" #define RGW_ATTR_PG_VER RGW_ATTR_PREFIX "pg_ver" #define RGW_ATTR_SOURCE_ZONE RGW_ATTR_PREFIX "source_zone" diff --git a/src/rgw/rgw_rest.cc b/src/rgw/rgw_rest.cc index 860aed7ded08..7f75df159274 100644 --- a/src/rgw/rgw_rest.cc +++ b/src/rgw/rgw_rest.cc @@ -43,6 +43,7 @@ static const struct rgw_http_attr base_rgw_to_http_attrs[] = { { RGW_ATTR_CONTENT_DISP, "Content-Disposition" }, { RGW_ATTR_CONTENT_ENC, "Content-Encoding" }, { RGW_ATTR_USER_MANIFEST, "X-Object-Manifest" }, + { RGW_ATTR_X_ROBOTS_TAG , "X-Robots-Tag" }, /* RGW_ATTR_AMZ_WEBSITE_REDIRECT_LOCATION header depends on access mode: * S3 endpoint: x-amz-website-redirect-location * S3Website endpoint: Location @@ -66,6 +67,7 @@ static const struct generic_attr generic_attrs[] = { { "HTTP_CACHE_CONTROL", RGW_ATTR_CACHE_CONTROL }, { "HTTP_CONTENT_DISPOSITION", RGW_ATTR_CONTENT_DISP }, { "HTTP_CONTENT_ENCODING", RGW_ATTR_CONTENT_ENC }, + { "HTTP_X_ROBOTS_TAG", RGW_ATTR_X_ROBOTS_TAG }, }; map rgw_to_http_attrs;