diff src/cjr_print.sml @ 1320:add5ae41969e

In FastCGI, signal 304 with a header, not the usual HTTP/1.1 line
author Adam Chlipala <adam@chlipala.net>
date Sat, 20 Nov 2010 09:48:03 -0500
parents d2ad997ca157
children 80bff6449f41
line wrap: on
line diff
--- a/src/cjr_print.sml	Fri Nov 19 17:06:11 2010 -0500
+++ b/src/cjr_print.sml	Sat Nov 20 09:48:03 2010 -0500
@@ -2924,7 +2924,7 @@
                   newline,
                   box [string "uw_clear_headers(ctx);",
                        newline,
-                       string "uw_write_header(ctx, \"HTTP/1.1 304 Not Modified\\r\\n\");",
+                       string "uw_write_header(ctx, uw_supports_direct_status ? \"HTTP/1.1 304 Not Modified\\r\\n\" : \"Status: 304 Not Modified\\r\\n\");",
                        newline,
                        string "return;",
                        newline],