-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
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
Response not getting cached when using .Bytes() or .String() methods #73
Comments
Please note that Code:
Output:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I read the response quirks on the readme but have so far been unable to get a struct populated using the response.JSON() method.
I'm using the latest version of grequests with Go 1.11. Here is the chunk of code in question:
In this scenario, S1 will print the response string and S2 will be empty. If I remove the
resp.JSON()
line everything works fine. Even if I try to call resp.JSON() first to populate before any other response method calls, the struct comes back nil.The text was updated successfully, but these errors were encountered: