Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

chore: remove version from ws proxy #611

Merged
merged 2 commits into from
Feb 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion providers/frame/FrameProxyProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { FrameProvider } from "./FrameProvider.ts"
export abstract class FrameProxyProvider extends FrameProvider {
override async handle(request: Request, pathInfo: PathInfo): Promise<Response> {
if (
pathInfo.vRuntime && pathInfo.vRuntime !== "latest" && !pathInfo.filePath
!pathInfo.vRuntime && !pathInfo.filePath
&& request.headers.get("upgrade") === "websocket"
) {
return this.proxyWs(request, pathInfo)
Expand Down Expand Up @@ -52,6 +52,7 @@ export abstract class FrameProxyProvider extends FrameProvider {
return new URL(
fromPathInfo({
...pathInfo,
vRuntime: "",
filePath: "",
}),
this.env.href.replace(/^http/, "ws"),
Expand Down