From 4f0b949081bfd774a30d7c561e6317e6b3e5752b Mon Sep 17 00:00:00 2001 From: KLuka Date: Wed, 28 Jan 2015 20:54:56 +0100 Subject: [PATCH] =?UTF-8?q?IE=2011=20-=20This=20page=20can=E2=80=99t=20be?= =?UTF-8?q?=20displayed=20(Issue=20#262)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now we are able to identify IE11 as MSIE browser and disable compresion. Patch taken from issue comments. https://code.google.com/p/shellinabox/issues/detail?id=262 --- libhttp/httpconnection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhttp/httpconnection.c b/libhttp/httpconnection.c index a19ac3f..521d610 100644 --- a/libhttp/httpconnection.c +++ b/libhttp/httpconnection.c @@ -568,7 +568,7 @@ void httpTransfer(struct HttpConnection *http, char *msg, int len) { // also has difficulties with SSL connections that are being proxied. int ieBug = 0; const char *userAgent = getFromHashMap(&http->header, "user-agent"); - const char *msie = userAgent ? strstr(userAgent, "MSIE ") : NULL; + const char *msie = userAgent ? strstr(userAgent, "Trident") : NULL; if (msie) { ieBug++; }