]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_rest.h
import 14.2.4 nautilus point release
[ceph.git] / ceph / src / rgw / rgw_rest.h
index 4780f8026346e3a22aaaaf35bb972561050663f6..e1c8712f6ec074e6c95f83dc550e3a21757739aa 100644 (file)
@@ -730,7 +730,7 @@ static inline void dump_header_if_nonempty(struct req_state* s,
 static inline std::string compute_domain_uri(const struct req_state *s) {
   std::string uri = (!s->info.domain.empty()) ? s->info.domain :
     [&s]() -> std::string {
-    auto env = *(s->info.env);
+    RGWEnv const &env(*(s->info.env));
     std::string uri =
     env.get("SERVER_PORT_SECURE") ? "https://" : "http://";
     if (env.exists("SERVER_NAME")) {