Fix x-paste-read-limit handling when using Paste API v2

Fix raw/download option being ignored

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
Joe Ma 2024-01-31 03:48:28 +08:00
parent 0a57cf4053
commit 8623fb74d9
No known key found for this signature in database
GPG key ID: 7A0ECF5F5EDC587F
5 changed files with 38 additions and 20 deletions

7
src/types.d.ts vendored
View file

@ -14,6 +14,8 @@ export interface PasteIndexEntry {
editable?: boolean; // Default: False (unsupported)
read_count_remain?: number;
type?: string;
upload_completed?: boolean;
sha256_hash?: string;
}
export interface Env {
@ -21,5 +23,8 @@ export interface Env {
QRCODE: ServiceWorkerGlobalScope;
AWS_ACCESS_KEY_ID: string;
AWS_SECRET_ACCESS_KEY: string;
LARGE_AWS_ACCESS_KEY_ID?: string;
LARGE_AWS_SECRET_ACCESS_KEY?: string;
ENDPOINT: string;
}
LARGE_ENDPOINT: string;
}