Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add non-ascii in status line test

from Ben Noordhuis
  • Loading branch information...
commit fb875caa43c585ee6017f09b6bee69a7f857fab3 1 parent 51de89f
@ry ry authored
Showing with 24 additions and 0 deletions.
  1. +24 −0 test.c
View
24 test.c
@@ -874,6 +874,30 @@ const struct message responses[] =
,.body= ""
}
+#define NON_ASCII_IN_STATUS_LINE 11
+/* Should handle non-ASCII in status line */
+, {.name= "non-ASCII in status line"
+ ,.type= HTTP_RESPONSE
+ ,.raw= "HTTP/1.1 500 Oriëntatieprobleem\r\n"
+ "Date: Fri, 5 Nov 2010 23:07:12 GMT+2\r\n"
+ "Content-Length: 0\r\n"
+ "Connection: close\r\n"
+ "\r\n"
+ ,.should_keep_alive= FALSE
+ ,.message_complete_on_eof= FALSE
+ ,.http_major= 1
+ ,.http_minor= 1
+ ,.status_code= 500
+ ,.num_headers= 3
+ ,.headers=
+ { { "Date", "Fri, 5 Nov 2010 23:07:12 GMT+2" }
+ , { "Content-Length", "0" }
+ , { "Connection", "close" }
+ }
+ ,.body= ""
+ }
+
+
, {.name= NULL } /* sentinel */
};
Please sign in to comment.
Something went wrong with that request. Please try again.