Merge pull request #1707 from arnekaiser/develop
Bugfix: allow POST request without POST data
This commit is contained in:
commit
5a7e663b1d
@ -328,11 +328,14 @@ osrm::tribool RequestParser::consume(request ¤t_request, const char input)
|
|||||||
}
|
}
|
||||||
return osrm::tribool::no;
|
return osrm::tribool::no;
|
||||||
case internal_state::expecting_newline_3:
|
case internal_state::expecting_newline_3:
|
||||||
if(input == '\n')
|
if (input == '\n')
|
||||||
{
|
{
|
||||||
if(is_post_header)
|
if (is_post_header)
|
||||||
|
{
|
||||||
|
if (content_length > 0)
|
||||||
{
|
{
|
||||||
current_request.uri.push_back('?');
|
current_request.uri.push_back('?');
|
||||||
|
}
|
||||||
state = internal_state::post_request;
|
state = internal_state::post_request;
|
||||||
return osrm::tribool::indeterminate;
|
return osrm::tribool::indeterminate;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user