We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since you're using json.Decoder, I think it would be wise to drain response body for connection reuse. See relevant issue: google/go-github#317 Discussion: https://stackoverflow.com/questions/17948827/reusing-http-connections-in-golang https://groups.google.com/forum/#!search/golang%2420json%2420decode%2420%2420io.Copy/golang-nuts/4Rr8BYVKrAI/ZrJJFTNleekJ Solution to this would be something like this
defer func() { io.CopyN(ioutil.Discard, resp.Body, 512) resp.Body.Close() }()
in here
golang-instagram/instagram/core.go
Line 80 in 75f0c6a
If you want I can make a pull request.
Cheers.
The text was updated successfully, but these errors were encountered:
Good idea. I haven't used this project in a while. Would you write a PR please?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Since you're using json.Decoder, I think it would be wise to drain response body for connection reuse. See relevant issue:
google/go-github#317
Discussion:
https://stackoverflow.com/questions/17948827/reusing-http-connections-in-golang
https://groups.google.com/forum/#!search/golang%2420json%2420decode%2420%2420io.Copy/golang-nuts/4Rr8BYVKrAI/ZrJJFTNleekJ
Solution to this would be something like this
in here
golang-instagram/instagram/core.go
Line 80 in 75f0c6a
If you want I can make a pull request.
Cheers.
The text was updated successfully, but these errors were encountered: