generated from ipfs/ipfs-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gw): Ipfs-Gateway-Mode: path|trustless
This is opt-in HTTP header that CLI tools like CURL can send to disable browser-specific redirect to subdomain and/or force trustless mode, which errors instead of returning deserialized data. Context: https://curl.se/mail/lib-2023-10/0038.html An IPIP and gateway conformance tests will follow.
- Loading branch information
Showing
4 changed files
with
70 additions
and
25 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
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,8 @@ | ||
package gateway | ||
|
||
const ( | ||
|
||
// GatewayMode header allows client and server to opt-in into specific | ||
// more strict mode, such as limiting responses to trustless ones. | ||
GatewayModeHeader = "Ipfs-Gateway-Mode" | ||
) |
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