Skip to content
Snippets Groups Projects
Commit c2ad2814 authored by fangyincheng's avatar fangyincheng
Browse files

Fix: fix jsonprc about 'HTTP/1.1'

parent 6d761413
No related branches found
No related tags found
No related merge requests found
......@@ -252,6 +252,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 +278,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