From 9798744d58e1f8792a5cb30465c5b6079eefb283 Mon Sep 17 00:00:00 2001 From: Zhang Shaowen Date: Fri, 27 Jul 2018 16:16:22 +0800 Subject: [PATCH] rgw: add Http header 'Server' in response headers. Signed-off-by: Zhang Shaowen --- src/common/legacy_config_opts.h | 1 + src/common/options.cc | 7 +++++++ src/rgw/rgw_rest.cc | 1 + 3 files changed, 9 insertions(+) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 1fe4525722f77..5bc76e89e40d6 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1297,6 +1297,7 @@ OPTION(rgw_host, OPT_STR) // host for radosgw, can be an IP, default is 0.0.0.0 OPTION(rgw_port, OPT_STR) // port to listen, format as "8080" "5000", if not specified, rgw will not run external fcgi OPTION(rgw_dns_name, OPT_STR) // hostname suffix on buckets OPTION(rgw_dns_s3website_name, OPT_STR) // hostname suffix on buckets for s3-website endpoint +OPTION(rgw_service_provider_name, OPT_STR) //service provider name which is contained in http response headers OPTION(rgw_content_length_compat, OPT_BOOL) // Check both HTTP_CONTENT_LENGTH and CONTENT_LENGTH in fcgi env OPTION(rgw_lifecycle_work_time, OPT_STR) //job process lc at 00:00-06:00s OPTION(rgw_lc_lock_max_time, OPT_INT) // total run time for a single lc processor work diff --git a/src/common/options.cc b/src/common/options.cc index 01aab9e47fa78..66517de64272e 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -5114,6 +5114,13 @@ std::vector