mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
9fadceb5a3
commit
01bc135c59
2 files changed
+2
-2
No files matched your search
@@ -3,7 +3,7 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* 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", () => {
|
describe("isLongRunningRequest", () => {
|
||||||
it("returns true on watches", () => {
|
it("returns true on watches", () => {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import type HttpProxyServer from "http-proxy";
|
|||||||
const watchParam = "watch";
|
const watchParam = "watch";
|
||||||
const followParam = "follow";
|
const followParam = "follow";
|
||||||
|
|
||||||
const isLongRunningRequest = (reqUrl: string) => {
|
export const isLongRunningRequest = (reqUrl: string) => {
|
||||||
const url = new URL(reqUrl, "http://localhost");
|
const url = new URL(reqUrl, "http://localhost");
|
||||||
|
|
||||||
return getBoolean(url.searchParams, watchParam) || getBoolean(url.searchParams, followParam);
|
return getBoolean(url.searchParams, watchParam) || getBoolean(url.searchParams, followParam);
|
||||||
|
|||||||
Reference in new issue
Block a user