8000 Make sure it can handle spaces in content-length · zwxalgorithm/http-parser@04bc364 · GitHub
[go: up one dir, main page]

8000 Skip to content

Commit 04bc364

Browse files
committed
Make sure it can handle spaces in content-length
1 parent 37e9009 commit 04bc364

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ const struct message responses[] =
553553
"Expires: Tue, 26 May 2009 11:11:49 GMT\r\n"
554554
"Cache-Control: public, max-age=2592000\r\n"
555555
"Server: gws\r\n"
556-
"Content-Length: 219\r\n"
556+
"Content-Length: 219 \r\n"
557557
"\r\n"
558558
"<HTML><HEAD><meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">\n"
559559
"<TITLE>301 Moved</TITLE></HEAD><BODY>\n"
@@ -574,7 +574,7 @@ const struct message responses[] =
574574
, { "Expires", "Tue, 26 May 2009 11:11:49 GMT" }
575575
, { "Cache-Control", "public, max-age=2592000" }
576576
, { "Server", "gws" }
577-
, { "Content-Length", "219" }
577+
, { "Content-Length", "219 " }
578578
}
579579
,.body= "<HTML><HEAD><meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">\n"
580580
"<TITLE>301 Moved</TITLE></HEAD><BODY>\n"

0 commit comments

Comments
 (0)
0