mirror of
https://github.com/ceph/ceph
synced 2025-01-31 15:32:38 +00:00
rgw: Fix crash when FastCGI frontend doesn't set SCRIPT_URI
Fixes: #3735 Signed-off-by: caleb miles <caleb.miles@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
eba314a811
commit
e1da85f286
@ -1120,7 +1120,7 @@ RGWRESTMgr::~RGWRESTMgr()
|
||||
int RGWREST::preprocess(struct req_state *s, RGWClientIO *cio)
|
||||
{
|
||||
s->cio = cio;
|
||||
s->script_uri = s->env->get("SCRIPT_URI");
|
||||
s->script_uri = s->env->get("SCRIPT_URI", "");
|
||||
s->request_uri = s->env->get("REQUEST_URI");
|
||||
int pos = s->request_uri.find('?');
|
||||
if (pos >= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user