diff --git a/config_center/zookeeper/impl.go b/config_center/zookeeper/impl.go index 00982a97cadeeeb62f6ed8393cd922f240241d9d..61c969dd139ba3d1d5e8ebcd8a27a04e5009d500 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 5afe619b5dfbaa6b6caa6deafe4eedcfc52efa5e..46e2da06b77c070cf15ff6ee6b4781c453022747 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