mirror of
https://github.com/typesense/typesense.git
synced 2025-05-21 22:33:27 +08:00
Handle url encoding in document ID.
This commit is contained in:
parent
93c31be88f
commit
27d1558954
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user