From 5d6c774be8dd39872e9e4370efb39d58e3cbe2c4 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 13 Apr 2017 22:05:10 -0700 Subject: [PATCH] GUACAMOLE-250: Ensure static downloads of Guacamole protocol data are handled as text, even if the "Content-Type" header is missing. --- guacamole-common-js/src/main/webapp/modules/Tunnel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/guacamole-common-js/src/main/webapp/modules/Tunnel.js b/guacamole-common-js/src/main/webapp/modules/Tunnel.js index e52017774..cc5fbbb1e 100644 --- a/guacamole-common-js/src/main/webapp/modules/Tunnel.js +++ b/guacamole-common-js/src/main/webapp/modules/Tunnel.js @@ -1139,6 +1139,7 @@ Guacamole.StaticHTTPTunnel = function StaticHTTPTunnel(url, crossDomain) { xhr = new XMLHttpRequest(); xhr.open('GET', url); xhr.withCredentials = !!crossDomain; + xhr.responseType = 'text'; xhr.send(null); var offset = 0;