mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Add middleware to handle CORS
This commit is contained in:
@@ -3,15 +3,15 @@ import mime from "mime";
|
||||
import { parse_range } from "./range_parser.ts";
|
||||
|
||||
export type GetFileResponseOptions = {
|
||||
boundary?: string;
|
||||
boundary?: string | null;
|
||||
/**@default {4096} */
|
||||
chunk?: number;
|
||||
/**@default {false} */
|
||||
combineRange?: boolean;
|
||||
if_modified_since?: string;
|
||||
if_unmodified_since?: string;
|
||||
mimetype?: string;
|
||||
range?: string;
|
||||
if_modified_since?: string | null;
|
||||
if_unmodified_since?: string | null;
|
||||
mimetype?: string | null;
|
||||
range?: string | null;
|
||||
};
|
||||
|
||||
export async function get_file_response(
|
||||
|
||||
Reference in New Issue
Block a user