From e936e5e295a56ee2ece90524ddf23f37d1774860 Mon Sep 17 00:00:00 2001 From: Evgeniy Stratonikov Date: Tue, 6 Jul 2021 16:24:25 +0300 Subject: [PATCH] oracle: set request Content-Type Signed-off-by: Evgeniy Stratonikov --- pkg/services/oracle/request.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/services/oracle/request.go b/pkg/services/oracle/request.go index 6dee6334e..4c59cbbaa 100644 --- a/pkg/services/oracle/request.go +++ b/pkg/services/oracle/request.go @@ -119,6 +119,7 @@ func (o *Oracle) processRequest(priv *keys.PrivateKey, req request) error { break } httpReq.Header.Set("User-Agent", "NeoOracleService/3.0") + httpReq.Header.Set("Content-Type", "application/json") r, err := o.Client.Do(httpReq) if err != nil { o.Log.Warn("oracle request failed", zap.String("url", req.Req.URL), zap.Error(err))