Allow cache ttl to be set only within scoped key.

This commit is contained in:
Kishore Nallan 2021-11-14 18:28:48 +05:30
parent cdfbc4c1b5
commit cd09bf7d88

View File

@ -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 = "";