Skip to content

Commit 4700159

Browse files
authored
Change redirect mode from follow to manual (#104)
1 parent 703fae4 commit 4700159

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async function handleRequest(request) {
105105
const newReq = new Request(newUrl, {
106106
method: request.method,
107107
headers: request.headers,
108-
redirect: "follow",
108+
redirect: "manual",
109109
});
110110
const resp = await fetch(newReq);
111111
if (resp.status == 401) {

wrangler.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CUSTOM_DOMAIN = "libcuda.so"
1212
[env.dev.vars]
1313
MODE = "debug"
1414
TARGET_UPSTREAM = "https://registry-1.docker.io"
15+
CUSTOM_DOMAIN = "exmaple.com"
1516

1617
[env.production]
1718
name = "cloudflare-docker-proxy"

0 commit comments

Comments
 (0)