From 720696076fd7176ed9c43d3a8ee180a502c6f680 Mon Sep 17 00:00:00 2001 From: James Muehlner Date: Fri, 8 Apr 2022 21:48:33 +0000 Subject: [PATCH] GUACAMOLE-1579: Stop including the auth token when making requests to the /api/patches endpoint. --- .../main/frontend/src/app/rest/services/patchService.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/guacamole/src/main/frontend/src/app/rest/services/patchService.js b/guacamole/src/main/frontend/src/app/rest/services/patchService.js index 991a54a52..ea06e5b40 100644 --- a/guacamole/src/main/frontend/src/app/rest/services/patchService.js +++ b/guacamole/src/main/frontend/src/app/rest/services/patchService.js @@ -25,17 +25,16 @@ angular.module('rest').factory('patchService', ['$injector', // Required services var requestService = $injector.get('requestService'); - var authenticationService = $injector.get('authenticationService'); var cacheService = $injector.get('cacheService'); var service = {}; - + /** * Makes a request to the REST API to get the list of patches, returning * a promise that provides the array of all applicable patches if * successful. Each patch is a string of raw HTML with meta information * describing the patch operation stored within meta tags. - * + * * @returns {Promise.} * A promise which will resolve with an array of HTML patches upon * success. @@ -43,14 +42,14 @@ angular.module('rest').factory('patchService', ['$injector', service.getPatches = function getPatches() { // Retrieve all applicable HTML patches - return authenticationService.request({ + return requestService({ cache : cacheService.patches, method : 'GET', url : 'api/patches' }); }; - + return service; }]);