summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--hittpd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hittpd.c b/hittpd.c
index 40c81a3..daf2c1f 100644
--- a/hittpd.c
+++ b/hittpd.c
@@ -498,6 +498,8 @@ on_message_complete(http_parser *p) {
 		} else if (s[i] == 0) {
 			send_error(p, 400, "Bad Request");
 			return 0;
+		} else if (s[i] == '?') {
+			break;
 		} else {
 			*t++ = s[i];
 		}