Skip to content

Conversation

@lon9
Copy link
Contributor

@lon9 lon9 commented Apr 27, 2017

If Content-Length is not shown on the header, res.ContentLength would be -1 (https://golang.org/pkg/net/http/#Response)
If we cast it to uint, it become a max value of uint, so we have to evaluate it as int64

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 75.092% when pulling 542320b on Rompei:fix-content-length-evaluation into 7bace10 on Code-Hex:master.

@Code-Hex
Copy link
Owner

@Rompei Thanks!! Nice PR.

@Code-Hex Code-Hex merged commit 9294f74 into Code-Hex:master Apr 28, 2017
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.

3 participants