mirror of
https://github.com/rikkaneko/paste.git
synced 2025-06-06 16:45:41 +00:00
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:
parent
0a57cf4053
commit
8623fb74d9
5 changed files with 38 additions and 20 deletions
7
src/types.d.ts
vendored
7
src/types.d.ts
vendored
|
@ -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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue