From 82d7b584058d78ead941b361bb3a2d46402d32e2 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Wed, 19 Feb 2020 10:38:41 +0100 Subject: [PATCH] Add trailing byte in http_token and http_field_content. --- src/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http.c b/src/http.c index 616c648..0b01f55 100644 --- a/src/http.c +++ b/src/http.c @@ -91,7 +91,7 @@ static const char http_token[] = { '`' , 'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'g' , 'h' , 'i' , 'j' , 'k' , 'l' , 'm' , 'n' , 'o' , 'p' , 'q' , 'r' , 's' , 't' , 'u' , 'v' , 'w' , - 'x' , 'y' , 'z' , 0x00, '|' , 0x00, '~' , + 'x' , 'y' , 'z' , 0x00, '|' , 0x00, '~' , 0x00 }; /* @@ -115,7 +115,7 @@ static const char http_field_content[] = { '`' , 'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'g' , 'h' , 'i' , 'j' , 'k' , 'l' , 'm' , 'n' , 'o' , 'p' , 'q' , 'r' , 's' , 't' , 'u' , 'v' , 'w' , - 'x' , 'y' , 'z' , '{' , '|' , '}' , '~' , + 'x' , 'y' , 'z' , '{' , '|' , '}' , '~' , 0x00 }; static int http_body_recv(struct netbuf *);