oracle: set request Content-Type

Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgeniy Stratonikov 2021-07-06 16:24:25 +03:00
parent 8e9302f40b
commit e936e5e295

View file

@ -119,6 +119,7 @@ func (o *Oracle) processRequest(priv *keys.PrivateKey, req request) error {
break break
} }
httpReq.Header.Set("User-Agent", "NeoOracleService/3.0") httpReq.Header.Set("User-Agent", "NeoOracleService/3.0")
httpReq.Header.Set("Content-Type", "application/json")
r, err := o.Client.Do(httpReq) r, err := o.Client.Do(httpReq)
if err != nil { if err != nil {
o.Log.Warn("oracle request failed", zap.String("url", req.Req.URL), zap.Error(err)) o.Log.Warn("oracle request failed", zap.String("url", req.Req.URL), zap.Error(err))