Skip to content

Commit 5f271e0

Browse files
Update worker/index.ts
Co-authored-by: windsurf-bot[bot] <189301087+windsurf-bot[bot]@users.noreply.github.com>
1 parent 401544d commit 5f271e0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

worker/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ export default class extends WorkerEntrypoint<Env> {
3333
);
3434

3535
if (redirect) {
36-
return new Response(redirect.url + "index.md", redirect);
36+
return new Response(null, {
37+
...redirect,
38+
headers: {
39+
...redirect.headers,
40+
"Location": redirect.url + "index.md"
41+
}
42+
});
3743
}
3844

3945
return res;

0 commit comments

Comments
 (0)