diff --git a/README.md b/README.md index 6e4582f997ff03765c27a122b52b326dd95ab48c..f387b934e25e0b19c6d4c6cb9b23548344c3d543 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,11 @@ Finished List: * JsonRPC V2 * Hessian V2 +- Protocol + * Dubbo + * Jsonrpc2.0 + * [gRPC](https://github.com/apache/dubbo-go/pull/311) + - Registry * ZooKeeper * [etcd v3](https://github.com/apache/dubbo-go/pull/148) diff --git a/README_CN.md b/README_CN.md index a88e35c39376d5b95398c14e992872e6b4a598bf..22af253416017403eaad2579ff977c6925936d7a 100644 --- a/README_CN.md +++ b/README_CN.md @@ -41,6 +41,11 @@ Apache License, Version 2.0 - 搴忓垪鍖栧崗璁� * JsonRPC V2 * Hessian V2 + +- 鍗忚 + * Dubbo + * Jsonrpc2.0 + * [gRPC](https://github.com/apache/dubbo-go/pull/311) - 娉ㄥ唽涓績 * ZooKeeper diff --git a/protocol/jsonrpc/server.go b/protocol/jsonrpc/server.go index dc85e0f5e76fd07dbcd11646ae529c98e5323a15..dc79e4a36bd6cce575d50588d11b003cb8e25abe 100644 --- a/protocol/jsonrpc/server.go +++ b/protocol/jsonrpc/server.go @@ -93,6 +93,8 @@ func (s *Server) handlePkg(conn net.Conn) { rsp := &http.Response{ Header: header, StatusCode: 500, + ProtoMajor: 1, + ProtoMinor: 1, ContentLength: int64(len(body)), Body: ioutil.NopCloser(bytes.NewReader(body)), } @@ -252,6 +254,8 @@ func serveRequest(ctx context.Context, rsp := &http.Response{ Header: make(http.Header), StatusCode: 500, + ProtoMajor: 1, + ProtoMinor: 1, ContentLength: int64(len(body)), Body: ioutil.NopCloser(bytes.NewReader(body)), } @@ -276,6 +280,8 @@ func serveRequest(ctx context.Context, rsp := &http.Response{ Header: make(http.Header), StatusCode: 200, + ProtoMajor: 1, + ProtoMinor: 1, ContentLength: int64(len(body)), Body: ioutil.NopCloser(bytes.NewReader(body)), }