GUACAMOLE-1775: Merge for auth token header change for "session/tunnels/<tunnel ID>/protocol" request.

This commit is contained in:
James Muehlner
2023-05-04 17:59:09 -07:00
committed by GitHub

View File

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