Enhancements

Add support for specifying node rename pattern in URL argument.
Optimize codes.
This commit is contained in:
Tindy X committed 2020-05-05 22:40:32 +08:00
1 parent af7d7fae05
commit 40d3b36f92
3 files changed
+10 -4

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ static inline int process_request(const char *method_str, std::string uri, std::
for(responseRoute &x : responses)
{
if(strcmp(method_str, "OPTIONS") == 0 && x.method == postdata && x.path == path)
if(strcmp(method_str, "OPTIONS") == 0 && postdata.find(x.method) != 0 && x.path == path)
{
return 1;
}