GUACAMOLE-1775: Merge migration to HTTP header for token in protocol retrieval request.
This commit is contained in:
1 file changed
+2
-9
@@ -97,17 +97,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
|
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user