Handle url encoding in document ID.

This commit is contained in:
Kishore Nallan 2022-04-15 18:07:23 +05:30
parent 93c31be88f
commit 27d1558954

View File

@ -423,10 +423,7 @@ int HttpServer::catch_all_handler(h2o_handler_t *_h2o_handler, h2o_req_t *req) {
for(size_t i = 0; i < rpath->path_parts.size(); i++) {
const std::string & path_part = rpath->path_parts[i];
if(path_part[0] == ':') {
std::string& value = path_parts[i];
if(path_part == ":collection") {
value = StringUtils::url_decode(value);
}
std::string value = StringUtils::url_decode(path_parts[i]);
query_map.emplace(path_part.substr(1), value);
}
}