-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix CF error on alias storages. (#2)
Enabling proxy on both of the alias and real storages is causing errors like too many redirects or SSL handshake failed 525 when trying to download
- Loading branch information
Showing
4 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export const ADDRESS = "YOUR_ADDRESS"; | ||
export const TOKEN = "YOUR_TOKEN"; | ||
export const TOKEN = "YOUR_TOKEN"; | ||
export const WORKER_ADDRESS = "YOUR_WORKER_ADDRESS"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { handleDownload } from "./handleDownload"; | ||
import { handleOptions } from "./handleOptions"; | ||
|
||
export async function handleRequest(request: Request) { | ||
if (request.method === "OPTIONS") { | ||
return handleOptions(request); | ||
} | ||
return await handleDownload(request); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters