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