From fc6703a85417ef21b898d2bcdcea586e5ab1e28c Mon Sep 17 00:00:00 2001 From: "vito.he" <hxmhlt@163.com> Date: Sat, 22 Jun 2019 23:01:31 +0800 Subject: [PATCH] Mod:fmt & rollback protocol/jsonrpc/http.go changed --- config_center/zookeeper/impl.go | 2 +- protocol/jsonrpc/http.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config_center/zookeeper/impl.go b/config_center/zookeeper/impl.go index 00982a97c..61c969dd1 100644 --- a/config_center/zookeeper/impl.go +++ b/config_center/zookeeper/impl.go @@ -18,7 +18,6 @@ package zookeeper import ( - "github.com/samuel/go-zookeeper/zk" "strings" "sync" "time" @@ -33,6 +32,7 @@ import ( "github.com/apache/dubbo-go/config_center" "github.com/apache/dubbo-go/remoting" "github.com/apache/dubbo-go/remoting/zookeeper" + "github.com/samuel/go-zookeeper/zk" ) const ZkClient = "zk config_center" diff --git a/protocol/jsonrpc/http.go b/protocol/jsonrpc/http.go index 5afe619b5..46e2da06b 100644 --- a/protocol/jsonrpc/http.go +++ b/protocol/jsonrpc/http.go @@ -110,7 +110,7 @@ func (c *HTTPClient) NewRequest(service common.URL, method string, args interfac func (c *HTTPClient) Call(ctx context.Context, service common.URL, req *Request, rsp interface{}) error { // header httpHeader := http.Header{} - httpHeader.Set("Content-Protocol", "application/json") + httpHeader.Set("Content-Type", "application/json") httpHeader.Set("Accept", "application/json") reqTimeout := c.options.HTTPTimeout -- GitLab