diff --git a/guacamole-common-js/src/main/resources/tunnel.js b/guacamole-common-js/src/main/resources/tunnel.js index 4f75ea3f6..812ee897d 100644 --- a/guacamole-common-js/src/main/resources/tunnel.js +++ b/guacamole-common-js/src/main/resources/tunnel.js @@ -434,12 +434,16 @@ Guacamole.HTTPTunnel = function(tunnelURL) { } + /** + * Arbitrary integer, unique for each tunnel read request. + */ + var request_id = 0; function makeRequest() { - // Download self + // Make request, increment request ID var xmlhttprequest = new XMLHttpRequest(); - xmlhttprequest.open("POST", TUNNEL_READ + tunnel_uuid); + xmlhttprequest.open("GET", TUNNEL_READ + tunnel_uuid + ":" + (request_id++)); xmlhttprequest.send(null); return xmlhttprequest;