Add trailing byte in http_token and http_field_content.

This commit is contained in:
Joris Vink 2020-02-19 10:38:41 +01:00
parent 1a64d202de
commit 82d7b58405
1 changed files with 2 additions and 2 deletions

View File

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