1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-01-12 11:45:56 -05:00
parent 9fadceb5a3
commit 01bc135c59
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { isLongRunningRequest } from "../lens-proxy/lens-proxy";
import { isLongRunningRequest } from "../lens-proxy/handle-request-for.injectable";
describe("isLongRunningRequest", () => {
it("returns true on watches", () => {

View File

@ -15,7 +15,7 @@ import type HttpProxyServer from "http-proxy";
const watchParam = "watch";
const followParam = "follow";
const isLongRunningRequest = (reqUrl: string) => {
export const isLongRunningRequest = (reqUrl: string) => {
const url = new URL(reqUrl, "http://localhost");
return getBoolean(url.searchParams, watchParam) || getBoolean(url.searchParams, followParam);