Permalink
Browse files

Test that it can handle $ in header field

  • Loading branch information...
1 parent 84578ae commit 03970a576da4fc921d164be35e0a27b5fbdb1cc5 @ry ry committed Nov 11, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 test.c
View
4 test.c
@@ -570,6 +570,7 @@ const struct message responses[] =
"Content-Type: text/html; charset=UTF-8\r\n"
"Date: Sun, 26 Apr 2009 11:11:49 GMT\r\n"
"Expires: Tue, 26 May 2009 11:11:49 GMT\r\n"
+ "X-$PrototypeBI-Version: 1.6.0.3\r\n" /* $ char in header field */
"Cache-Control: public, max-age=2592000\r\n"
"Server: gws\r\n"
"Content-Length: 219 \r\n"
@@ -585,12 +586,13 @@ const struct message responses[] =
,.http_major= 1
,.http_minor= 1
,.status_code= 301
- ,.num_headers= 7
+ ,.num_headers= 8
,.headers=
{ { "Location", "http://www.google.com/" }
, { "Content-Type", "text/html; charset=UTF-8" }
, { "Date", "Sun, 26 Apr 2009 11:11:49 GMT" }
, { "Expires", "Tue, 26 May 2009 11:11:49 GMT" }
+ , { "X-$PrototypeBI-Version", "1.6.0.3" }
, { "Cache-Control", "public, max-age=2592000" }
, { "Server", "gws" }
, { "Content-Length", "219 " }

0 comments on commit 03970a5

Please sign in to comment.