Skip to content

Commit

Permalink
fix parse_query_params when value includes '='
Browse files Browse the repository at this point in the history
  • Loading branch information
ithewei committed Apr 3, 2024
1 parent a4e09ed commit 6d23a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/http_content.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6d23a08

Please sign in to comment.