fix bug in URL parser (i bet there are some left)

This commit is contained in:
Andreas Öman 2007-12-02 15:32:40 +00:00
parent 4dcee778d3
commit 05a18bbe52

4
http.c
View file

@ -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;