fix bug in URL parser (i bet there are some left)
This commit is contained in:
parent
4dcee778d3
commit
05a18bbe52
1 changed files with 2 additions and 2 deletions
4
http.c
4
http.c
|
@ -86,10 +86,10 @@ http_resolve(http_connection_t *hc, char **remainp)
|
|||
|
||||
v = hc->hc_url + hp->hp_len;
|
||||
|
||||
if(*v != 0 && *v != '/')
|
||||
if(*v != 0 && *v != '/' && *v != '?')
|
||||
return NULL;
|
||||
|
||||
if(*v == '/')
|
||||
if(*v == '/' || *v == '?')
|
||||
v++;
|
||||
|
||||
*remainp = v;
|
||||
|
|
Loading…
Add table
Reference in a new issue