comparison 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
comparison
equal deleted inserted replaced
1319:c17e6144510b 1320:add5ae41969e
2922 newline, 2922 newline,
2923 string ("if (ims && !strcmp(ims, \"" ^ Date.fmt rfcFmt nowD ^ "\")) {"), 2923 string ("if (ims && !strcmp(ims, \"" ^ Date.fmt rfcFmt nowD ^ "\")) {"),
2924 newline, 2924 newline,
2925 box [string "uw_clear_headers(ctx);", 2925 box [string "uw_clear_headers(ctx);",
2926 newline, 2926 newline,
2927 string "uw_write_header(ctx, \"HTTP/1.1 304 Not Modified\\r\\n\");", 2927 string "uw_write_header(ctx, uw_supports_direct_status ? \"HTTP/1.1 304 Not Modified\\r\\n\" : \"Status: 304 Not Modified\\r\\n\");",
2928 newline, 2928 newline,
2929 string "return;", 2929 string "return;",
2930 newline], 2930 newline],
2931 string "}", 2931 string "}",
2932 newline, 2932 newline,