mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
librgw: don't fake hostname (real hostname isn't used yet)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
This commit is contained in:
parent
cca325e11a
commit
29942221bd
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user