Fixed request parse issues on Windows
Tests on Windows now passing. For some reason, std::string::find was not returning std::string::npos despite not finding anything on MinGW.
This commit is contained in:
parent
5e5117ff3f
commit
5c2b6c3a8d
@ -186,7 +186,7 @@ namespace fr
|
|||||||
{
|
{
|
||||||
unsigned long and_pos;
|
unsigned long and_pos;
|
||||||
and_pos = str.find('&', read_index);
|
and_pos = str.find('&', read_index);
|
||||||
if(and_pos == std::string::npos)
|
if(and_pos >= str.size())
|
||||||
{
|
{
|
||||||
size_t str_size = str.size();
|
size_t str_size = str.size();
|
||||||
while(str[str_size - 1] == '\n' || str[str_size - 1] == '\r')
|
while(str[str_size - 1] == '\n' || str[str_size - 1] == '\r')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user