mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-17 15:06:47 +08:00
feat: add Gateway.DisableHTMLErrors option (#10137)
This commit is contained in:
@ -3,6 +3,7 @@ package config
|
||||
const (
|
||||
DefaultInlineDNSLink = false
|
||||
DefaultDeserializedResponses = true
|
||||
DefaultDisableHTMLErrors = false
|
||||
DefaultExposeRoutingAPI = false
|
||||
)
|
||||
|
||||
@ -70,6 +71,10 @@ type Gateway struct {
|
||||
// be overridden per FQDN in PublicGateways.
|
||||
DeserializedResponses Flag
|
||||
|
||||
// DisableHTMLErrors disables pretty HTML pages when an error occurs. Instead, a `text/plain`
|
||||
// page will be sent with the raw error message.
|
||||
DisableHTMLErrors Flag
|
||||
|
||||
// PublicGateways configures behavior of known public gateways.
|
||||
// Each key is a fully qualified domain name (FQDN).
|
||||
PublicGateways map[string]*GatewaySpec
|
||||
|
Reference in New Issue
Block a user