this was required for some nginx configuration
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
bool content_started;
int format;
ceph::Formatter *formatter;
- const char *path_name;
+ string path_name;
string path_name_url;
string request_uri;
const char *host;
} else
s->host_bucket = NULL;
- const char *req_name = s->path_name;
+ const char *req_name = s->path_name.c_str();
const char *p;
if (*req_name == '?') {
s->request_uri = s->request_uri.substr(0, pos);
}
url_decode(s->request_uri, s->path_name_url);
+ if (s->path_name.empty())
+ s->path_name = s->path_name_url.c_str();
s->method = s->env->get("REQUEST_METHOD");
s->host = s->env->get("HTTP_HOST");
s->query = s->env->get("QUERY_STRING");