Allow "?" in URL body
See https://stackoverflow.com/questions/2924160/is-it-valid-to-have-more-than-one-question-mark-in-a-url
This commit is contained in:
parent
8a877027a1
commit
987e8358f9
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ namespace SimpleWeb {
|
|||
std::size_t query_start = std::string::npos;
|
||||
std::size_t path_and_query_string_end = std::string::npos;
|
||||
for(std::size_t i = method_end + 1; i < line.size(); ++i) {
|
||||
if(line[i] == '?' && (i + 1) < line.size())
|
||||
if(line[i] == '?' && (i + 1) < line.size() && query_start == std::string::npos)
|
||||
query_start = i + 1;
|
||||
else if(line[i] == ' ') {
|
||||
path_and_query_string_end = i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue