}
for (int i = 0; i < info->num_headers; i++) {
- const struct mg_request_info::mg_header* header = &info->http_headers[i];
+ const auto header = &info->http_headers[i];
if (header->name == nullptr || header->value==nullptr) {
lderr(cct) << "client supplied malformatted headers" << dendl;
env.set("REQUEST_METHOD", info->request_method);
env.set("HTTP_VERSION", info->http_version);
env.set("REQUEST_URI", info->request_uri); // get the full uri, we anyway handle abs uris later
- env.set("SCRIPT_URI", info->uri); /* FIXME */
+ env.set("SCRIPT_URI", info->local_uri);
if (info->query_string) {
env.set("QUERY_STRING", info->query_string);
}
set_conf_default(conf_map, "validate_http_method", "no");
set_conf_default(conf_map, "canonicalize_url_path", "no");
set_conf_default(conf_map, "enable_auth_domain_check", "no");
+ set_conf_default(conf_map, "allow_unicode_in_urls", "yes");
std::string listening_ports;
// support multiple port= entries