mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-1775: Merge migration to HTTP header for token in protocol retrieval request.
This commit is contained in:
@@ -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'
|
||||
});
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user