forked from TrueCloudLab/neoneo-go
oracle: set request Content-Type
Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
8e9302f40b
commit
e936e5e295
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue