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
parent 05c675bb21
commit a2b3bb6461

View File

@@ -97,17 +97,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'
});
};