]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: don't fake hostname (real hostname isn't used yet)
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 23 Oct 2015 17:42:28 +0000 (13:42 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:04:59 +0000 (12:04 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/librgw.cc

index 6905672619de860ae29dde867751c1d86efc1cb8..dc2f5dffc22ee3ed88ab72dcf5c9ef1caa049f83 100644 (file)
@@ -158,14 +158,16 @@ int RGWLibProcess::process_request(RGWLibRequest* req, RGWLibIO* io)
 
   RGWEnv& rgw_env = io->get_env();
 
-  /* XXX derp derp derp
-   *
+  /* XXX
    * until major refactoring of req_state and req_info, we need
    * to build their RGWEnv boilerplate from the RGWLibRequest,
    * pre-staging any strings (HTTP_HOST) that provoke a crash when
    * not found
    */
-  rgw_env.set("HTTP_HOST", "10.1.1.220" /* XXXX: fix me */);
+
+  /* XXX for now, use "";  could be a legit hostname, or, in future,
+   * perhaps a tenant (Yehuda) */
+  rgw_env.set("HTTP_HOST", "");
 
   /* XXX and -then- bloat up req_state with string copies from it */
   struct req_state rstate(req->cct, &rgw_env, req->get_user());