GUACAMOLE-1775: Use header for auth token instead of a parameter in "session/tunnels/<tunnel ID>/protocol" request

This commit is contained in:
Ares Li
2023-04-19 15:43:18 -07:00
committed by Mike Jumper
parent 116edebf36
commit bc251f5a29

View File

@@ -88,17 +88,10 @@ angular.module('rest').factory('tunnelService', ['$injector',
*/ */
service.getProtocol = function getProtocol(tunnel) { service.getProtocol = function getProtocol(tunnel) {
// Build HTTP parameters set return authenticationService.request({
var httpParameters = {
token : authenticationService.getCurrentToken()
};
// Retrieve the protocol details of the specified tunnel
return requestService({
method : 'GET', method : 'GET',
url : 'api/session/tunnels/' + encodeURIComponent(tunnel) url : 'api/session/tunnels/' + encodeURIComponent(tunnel)
+ '/protocol', + '/protocol'
params : httpParameters
}); });
}; };