File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -168,15 +168,15 @@ export class ProxyHttpProvider extends HttpProvider implements HttpProxyProvider
168
168
// the event.
169
169
; ( request as Request ) . base = base
170
170
171
- const hxxp = response instanceof http . ServerResponse
171
+ const isHttp = response instanceof http . ServerResponse
172
172
const path = base ? route . fullPath . replace ( base , "" ) : route . fullPath
173
173
const options : proxy . ServerOptions = {
174
174
changeOrigin : true ,
175
175
ignorePath : true ,
176
- target : `${ hxxp ? "http" : "ws" } ://127.0.0.1:${ port } ${ path } ${
176
+ target : `${ isHttp ? "http" : "ws" } ://127.0.0.1:${ port } ${ path } ${
177
177
Object . keys ( route . query ) . length > 0 ? `?${ querystring . stringify ( route . query ) } ` : ""
178
178
} `,
179
- ws : ! hxxp ,
179
+ ws : ! isHttp ,
180
180
}
181
181
182
182
if ( response instanceof http . ServerResponse ) {
You can’t perform that action at this time.
0 commit comments