diff -c thttpd-2.23beta1/config.h thttpd-2.23beta1-ft/config.h *** thttpd-2.23beta1/config.h Tue Mar 19 09:07:29 2002 --- thttpd-2.23beta1-ft/config.h Tue Jun 18 19:49:39 2002 *************** *** 380,383 **** --- 381,392 ---- */ #define MIN_WOULDBLOCK_DELAY 100L + /* CONFIGURE: Uncomment this line to save a little bandwidth if + ** you servce a lot of error response, and want to save some bandwidth. + ** MSIE has a "feature" where it will display it's own message if the error + ** message is less than some number of bytes (512 I think). + ** thttpd normally introduces some extra headers in this case to make sure + ** that you don't get this message. + */ + /* #define NO_MSIE_HACK */ #endif /* _CONFIG_H_ */ diff -c thttpd-2.23beta1/libhttpd.c thttpd-2.23beta1-ft/libhttpd.c *** thttpd-2.23beta1/libhttpd.c Mon May 27 11:22:26 2002 --- thttpd-2.23beta1-ft/libhttpd.c Tue Jun 18 19:50:36 2002 *************** *** 784,789 **** --- 784,790 ---- defang( arg, defanged_arg, sizeof(defanged_arg) ); (void) my_snprintf( buf, sizeof(buf), form, defanged_arg ); add_response( hc, buf ); + #ifndef NO_MSIE_HACK if ( match( "**MSIE**", hc->useragent ) ) { int n; *************** *** 792,797 **** --- 793,799 ---- add_response( hc, "Padding so that MSIE deigns to show this error instead of its own canned one.\n"); add_response( hc, "-->\n" ); } + #endif /* ! NO_MSIE_HACK */ send_response_tail( hc ); }