xiazcy commented on code in PR #3519:
URL: https://github.com/apache/tinkerpop/pull/3519#discussion_r3605000927
##########
gremlin-go/driver/connection.go:
##########
@@ -395,7 +395,11 @@ func (c *connection) streamToResultSet(reader io.Reader,
rs ResultSet) {
d = NewGraphBinaryDeserializer(reader)
}
if err := d.ReadHeader(); err != nil {
- if err != io.EOF {
+ if err == io.EOF {
+ emptyBodyErr := fmt.Errorf("received empty response
body from server")
Review Comment:
Looks like Java and Python all use `Server returned an empty response body`
as the message, should this be consistent with that?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]