Repository: incubator-guacamole-client Updated Branches: refs/heads/master 8c7942c01 -> 209009cc7
GUACAMOLE-250: Ensure static downloads of Guacamole protocol data are handled as text, even if the "Content-Type" header is missing. Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/5d6c774b Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/5d6c774b Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/5d6c774b Branch: refs/heads/master Commit: 5d6c774be8dd39872e9e4370efb39d58e3cbe2c4 Parents: 9596801 Author: Michael Jumper <[email protected]> Authored: Thu Apr 13 22:05:10 2017 -0700 Committer: Michael Jumper <[email protected]> Committed: Fri Apr 14 10:31:24 2017 -0700 ---------------------------------------------------------------------- guacamole-common-js/src/main/webapp/modules/Tunnel.js | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/5d6c774b/guacamole-common-js/src/main/webapp/modules/Tunnel.js ---------------------------------------------------------------------- diff --git a/guacamole-common-js/src/main/webapp/modules/Tunnel.js b/guacamole-common-js/src/main/webapp/modules/Tunnel.js index e520177..cc5fbbb 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;
