Fixed '#' and '?' stripping when processing URLs, Daniel.
diff --git a/nanohttp.c b/nanohttp.c
index e2dfda3..f3e4827 100644
--- a/nanohttp.c
+++ b/nanohttp.c
@@ -214,12 +214,10 @@
     if (*cur == 0) 
         ctxt->path = xmlMemStrdup("/");
     else {
+        index = 0;
         buf[index] = 0;
-	while (*cur != 0) {
-	    if ((cur[0] == '#') || (cur[0] == '?'))
-	        break;
+	while (*cur != 0)
 	    buf[index++] = *cur++;
-	}
 	buf[index] = 0;
 	ctxt->path = xmlMemStrdup(buf);
     }