-
-
Save ry/8d854170ac16c39fdc74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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