oracle: check response Content-Type
If not specified everything is allowed. Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
1853d0c713
commit
8e9302f40b
6 changed files with 90 additions and 13 deletions
|
@ -6,6 +6,7 @@ import "time"
|
|||
type OracleConfiguration struct {
|
||||
Enabled bool `yaml:"Enabled"`
|
||||
AllowPrivateHost bool `yaml:"AllowPrivateHost"`
|
||||
AllowedContentTypes []string `yaml:"AllowedContentTypes"`
|
||||
Nodes []string `yaml:"Nodes"`
|
||||
NeoFS NeoFSConfiguration `yaml:"NeoFS"`
|
||||
MaxTaskTimeout time.Duration `yaml:"MaxTaskTimeout"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue