Skip to content

Commit fdf809b

Browse files
committed
Comment to explain why rewrite request URLs
It explains the reason why we need to manually rewrite the request URL on Deno. #528 (comment)
1 parent 3b758e3 commit fdf809b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/cli/src/tempserver.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export async function spawnTemporaryServer(
4242
}
4343

4444
const server = serve({
45+
// Note that `protocol: "https"` does not work on Deno, so we need to
46+
// manually rewrite the request URL to use https: on Deno:
4547
fetch: "Deno" in globalThis
4648
? (request) => {
4749
const url = new URL(request.url);

0 commit comments

Comments
 (0)