Skip to content

Instantly share code, notes, and snippets.

@ry
Created September 15, 2011 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ry/8d854170ac16c39fdc74 to your computer and use it in GitHub Desktop.
Save ry/8d854170ac16c39fdc74 to your computer and use it in GitHub Desktop.
diff --git a/test.c b/test.c
index 7d95b0e..fda4a0e 100644
--- a/test.c
+++ b/test.c
@@ -1042,6 +1042,23 @@ const struct message responses[] =
}
+#define NO_HEADERS_WITH_BODY_RESPONSE 12
+, {.name= "no headers with body response"
+ ,.type= HTTP_RESPONSE
+ ,.raw= "HTTP/1.1 200 OK\r\n"
+ "\r\n"
+ "<html><head><title></title></head><body></body></html>"
+ ,.should_keep_alive= FALSE
+ ,.message_complete_on_eof= TRUE
+ ,.http_major= 1
+ ,.http_minor= 1
+ ,.status_code= 200
+ ,.num_headers= 0
+ ,.headers= { }
+ ,.body= "<html><head><title></title></head><body></body></html>"
+ }
+
+
, {.name= NULL } /* sentinel */
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment