GUACAMOLE-1775: Merge migration to HTTP header for token in protocol retrieval request.

This commit is contained in:
Mike Jumper
2023-04-21 09:12:34 -07:00
committed by GitHub

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'
});
};