diff --git a/guacamole/src/main/frontend/src/app/rest/services/tunnelService.js b/guacamole/src/main/frontend/src/app/rest/services/tunnelService.js index 6a637ff71..1f0cde50d 100644 --- a/guacamole/src/main/frontend/src/app/rest/services/tunnelService.js +++ b/guacamole/src/main/frontend/src/app/rest/services/tunnelService.js @@ -88,17 +88,10 @@ angular.module('rest').factory('tunnelService', ['$injector', */ service.getProtocol = function getProtocol(tunnel) { - // Build HTTP parameters set - var httpParameters = { - token : authenticationService.getCurrentToken() - }; - - // Retrieve the protocol details of the specified tunnel - return requestService({ + return authenticationService.request({ method : 'GET', url : 'api/session/tunnels/' + encodeURIComponent(tunnel) - + '/protocol', - params : httpParameters + + '/protocol' }); };