Skip to content

Commit

Permalink
Fix connect.CloseResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Oct 31, 2023
1 parent 3dafb2d commit 7ac9679
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions protocol_connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,7 @@ func (cc *connectUnaryClientConn) ResponseTrailer() http.Header {
}

func (cc *connectUnaryClientConn) CloseResponse() error {
if response := cc.call.response; response != nil {
return response.Body.Close()
}
return nil
return cc.call.CloseRead()
}

func (cc *connectUnaryClientConn) onRequestSend(fn func(*http.Request)) {
Expand Down

0 comments on commit 7ac9679

Please sign in to comment.