GUACAMOLE-250: Ensure static downloads of Guacamole protocol data are handled as text, even if the "Content-Type" header is missing.

This commit is contained in:
Michael Jumper
2017-04-13 22:05:10 -07:00
parent 95968016c2
commit 5d6c774be8

View File

@@ -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;