Skip to content

Conversation

@brancz
Copy link
Member

@brancz brancz commented Dec 16, 2024

The way the if statement was written, if there is an io.EOF error, then we still first try reading the response object, however, in the io.EOF case it's null, therefore the if statement needs to be swapped around so it would never try to read something on the nil pointer if an io.EOF error is returned.

The way the if statement was written, if there is an io.EOF error, then
we still first try reading the response object, however, in the io.EOF
case it's null, therefore the if statement needs to be swapped around so
it would never try to read something on the nil pointer if an io.EOF
error is returned.
@brancz brancz merged commit dc6e2c7 into main Dec 16, 2024
12 checks passed
@brancz brancz deleted the fix-eof-handling branch December 16, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants