mirror of
https://github.com/typesense/typesense.git
synced 2025-05-22 14:55:26 +08:00
Allow cache ttl to be set only within scoped key.
This commit is contained in:
parent
cdfbc4c1b5
commit
cd09bf7d88
@ -351,6 +351,9 @@ int HttpServer::catch_all_handler(h2o_handler_t *_h2o_handler, h2o_req_t *req) {
|
||||
std::map<std::string, std::string> query_map;
|
||||
StringUtils::parse_query_string(query_str, query_map);
|
||||
|
||||
// cache ttl can be applied only from an embedded key
|
||||
query_map.erase("cache_ttl");
|
||||
|
||||
// Extract auth key from header. If that does not exist, look for a GET parameter.
|
||||
std::string api_auth_key_sent = "";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user