From 05a18bbe52bd1708eb586681de3135c93336af04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sun, 2 Dec 2007 15:32:40 +0000 Subject: [PATCH] fix bug in URL parser (i bet there are some left) --- http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http.c b/http.c index 97f617f4..2c50a735 100644 --- a/http.c +++ b/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;