Skip to content
Snippets Groups Projects
Commit fc6703a8 authored by vito.he's avatar vito.he
Browse files

Mod:fmt & rollback protocol/jsonrpc/http.go changed

parent 943e6da6
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment