Browse Source

fix parse_query_params when value includes '='

ithewei 1 year ago
parent
commit
6d23a08c42
1 changed files with 1 additions and 1 deletions
  1. 1 1
      http/http_content.cpp

+ 1 - 1
http/http_content.cpp

@@ -43,7 +43,7 @@ int parse_query_params(const char* query_string, QueryParams& query_params) {
             state = s_key;
             key = p+1;
         }
-        else if (*p == '=') {
+        else if (*p == '=' && state == s_key) {
             state = s_value;
             value = p+1;
         }