From 0976bbc01e90b62814b99250aea888261e58d7dd Mon Sep 17 00:00:00 2001 From: joe-ds Date: Tue, 6 Feb 2024 15:44:14 +0000 Subject: [PATCH] Moved config variables to the top. --- Proxy/HTTP/FilterAuthenticated.bambda | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Proxy/HTTP/FilterAuthenticated.bambda b/Proxy/HTTP/FilterAuthenticated.bambda index 13302f9..ac3f894 100644 --- a/Proxy/HTTP/FilterAuthenticated.bambda +++ b/Proxy/HTTP/FilterAuthenticated.bambda @@ -4,6 +4,11 @@ * @author joe-ds (https://github.com/joe-ds) **/ +var configNoFilter = true; // If set to false, won't show JS, GIF, JPG, PNG, CSS. +var configNotInScopeOnly = true; // If set to false, won't show out-of-scope items. +var sessionCookieName = ""; // If given, will look for a cookie with that name. +var sessionCookieValue = ""; // If given, will check if cookie with sessionCookieName has this value. + if (!requestResponse.hasResponse()) { return false; } @@ -15,11 +20,6 @@ if (!response.isStatusCodeClass(StatusCodeClass.CLASS_2XX_SUCCESS)) { return false; } -var configNoFilter = true; // If set to false, won't show JS, GIF, JPG, PNG, CSS. -var configNotInScopeOnly = true; // If set to false, won't show out-of-scope items. -var sessionCookieName = ""; // If given, will look for a cookie with that name. -var sessionCookieValue = ""; // If given, will check if cookie with sessionCookieName has this value. - var authHeader = request.hasHeader("Authorization"); boolean sessionCookie = request.headerValue("Cookie") != null