It seems this broken IIS wants "Via:" header to behave properly.
Without it, it sends:
Content-Encoding: gzip
Transfer-Encoding: chunked
But it doesn't send it chunked, just the plain gzip data.
You can set X_FORWARDED_FOR true (less privacy) or try this patch which sends plain Via: even when disabled.
Code:
--- connectiontobrowser.cpp 2008-02-13 06:34:48.000000000 +0200
+++ connectiontobrowser.cpp 2008-07-13 22:47:46.000000000 +0300
@@ -201,6 +201,10 @@
header += via;
header += "\r\n";
}
+ else
+ {
+ header += "Via: 1.0 HAVP\r\n";
+ }
return header;