-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Add validation for internal R2 requests
- Loading branch information
Showing
1 changed file
with
2 additions
and
4 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 |
---|---|---|
|
@@ -24,12 +24,10 @@ enum CfCode { | |
} | ||
|
||
export class R2Error extends HttpError { | ||
v4Code: number; | ||
object?: R2Object; | ||
|
||
constructor(status: number, message: string, v4Code: number) { | ||
super(status, message); | ||
this.v4Code = v4Code; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mrbbot
Author
Contributor
|
||
constructor(code: number, message: string, readonly v4Code: number) { | ||
super(code, message); | ||
} | ||
|
||
toResponse() { | ||
|
Why the deletion of
v4Code
? That needs to be sent toworkerd
, I think