From 106d1b7275e44cf419665e92b2682e009b51f095 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Thu, 12 Dec 2013 10:31:34 -0500 Subject: Only output Content-script-type header when there is client-side code --- src/cjr_print.sml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/cjr_print.sml') diff --git a/src/cjr_print.sml b/src/cjr_print.sml index dec21eb3..798492d6 100644 --- a/src/cjr_print.sml +++ b/src/cjr_print.sml @@ -3072,8 +3072,10 @@ fun p_file env (ds, ps) = newline] | _ => [string "uw_write_header(ctx, \"Content-type: text/html; charset=utf-8\\r\\n\");", newline, - string "uw_write_header(ctx, \"Content-script-type: text/javascript\\r\\n\");", - newline, + case side of + ServerOnly => box [] + | _ => box [string "uw_write_header(ctx, \"Content-script-type: text/javascript\\r\\n\");", + newline], string "uw_write(ctx, begin_xhtml);", newline, string "uw_mayReturnIndirectly(ctx);", -- cgit v1.2.3