Fossil SCM

X-UA-Compatible (MSIE) HTTP header patch from Warren Young.

stephan 2014-08-12 14:48 trunk
Commit b7bebbe44f92bb6d48b8688af61f874a584300b1
1 file changed +1
+1
--- src/cgi.c
+++ src/cgi.c
@@ -306,10 +306,11 @@
306306
307307
if( g.fullHttpReply ){
308308
fprintf(g.httpOut, "HTTP/1.0 %d %s\r\n", iReplyStatus, zReplyStatus);
309309
fprintf(g.httpOut, "Date: %s\r\n", cgi_rfc822_datestamp(time(0)));
310310
fprintf(g.httpOut, "Connection: close\r\n");
311
+ fprintf(g.httpOut, "X-UA-Compatible: IE=edge\r\n");
311312
}else{
312313
fprintf(g.httpOut, "Status: %d %s\r\n", iReplyStatus, zReplyStatus);
313314
}
314315
315316
if( blob_size(&extraHeader)>0 ){
316317
--- src/cgi.c
+++ src/cgi.c
@@ -306,10 +306,11 @@
306
307 if( g.fullHttpReply ){
308 fprintf(g.httpOut, "HTTP/1.0 %d %s\r\n", iReplyStatus, zReplyStatus);
309 fprintf(g.httpOut, "Date: %s\r\n", cgi_rfc822_datestamp(time(0)));
310 fprintf(g.httpOut, "Connection: close\r\n");
 
311 }else{
312 fprintf(g.httpOut, "Status: %d %s\r\n", iReplyStatus, zReplyStatus);
313 }
314
315 if( blob_size(&extraHeader)>0 ){
316
--- src/cgi.c
+++ src/cgi.c
@@ -306,10 +306,11 @@
306
307 if( g.fullHttpReply ){
308 fprintf(g.httpOut, "HTTP/1.0 %d %s\r\n", iReplyStatus, zReplyStatus);
309 fprintf(g.httpOut, "Date: %s\r\n", cgi_rfc822_datestamp(time(0)));
310 fprintf(g.httpOut, "Connection: close\r\n");
311 fprintf(g.httpOut, "X-UA-Compatible: IE=edge\r\n");
312 }else{
313 fprintf(g.httpOut, "Status: %d %s\r\n", iReplyStatus, zReplyStatus);
314 }
315
316 if( blob_size(&extraHeader)>0 ){
317

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button