From 74a0bacdcf6cb4785c10c3b8c4fad80563229f95 Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 1 Apr 2020 11:05:10 -0500 Subject: [PATCH] Rename hxxp to isHttp --- src/node/app/proxy.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node/app/proxy.ts b/src/node/app/proxy.ts index 3023ad79..2082e6ef 100644 --- a/src/node/app/proxy.ts +++ b/src/node/app/proxy.ts @@ -168,15 +168,15 @@ export class ProxyHttpProvider extends HttpProvider implements HttpProxyProvider // the event. ;(request as Request).base = base - const hxxp = response instanceof http.ServerResponse + const isHttp = response instanceof http.ServerResponse const path = base ? route.fullPath.replace(base, "") : route.fullPath const options: proxy.ServerOptions = { changeOrigin: true, ignorePath: true, - target: `${hxxp ? "http" : "ws"}://127.0.0.1:${port}${path}${ + target: `${isHttp ? "http" : "ws"}://127.0.0.1:${port}${path}${ Object.keys(route.query).length > 0 ? `?${querystring.stringify(route.query)}` : "" }`, - ws: !hxxp, + ws: !isHttp, } if (response instanceof http.ServerResponse) { -- GitLab