]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_civetweb.cc
update sources to v12.2.3
[ceph.git] / ceph / src / rgw / rgw_civetweb.cc
index 65283c61b1fb099053c94a67d51d39de51781e08..f4d17d721c18d5308504f21540d16727dbe93891 100644 (file)
@@ -110,8 +110,10 @@ void RGWCivetWeb::init_env(CephContext *cct)
     env.set(buf, value);
   }
 
+  env.set("REMOTE_ADDR", info->remote_addr);
   env.set("REQUEST_METHOD", info->request_method);
-  env.set("REQUEST_URI", info->uri);
+  env.set("HTTP_VERSION", info->http_version);
+  env.set("REQUEST_URI", info->request_uri); // get the full uri, we anyway handle abs uris later
   env.set("SCRIPT_URI", info->uri); /* FIXME */
   if (info->query_string) {
     env.set("QUERY_STRING", info->query_string);