Skip to content
Snippets Groups Projects
Unverified Commit ff410ac2 authored by Xin.Zh's avatar Xin.Zh Committed by GitHub
Browse files

Merge pull request #327 from fangyincheng/develop

Fix: jsonrpc
parents 3897328c 7c3178ee
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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
......
......@@ -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)),
}
......
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