Skip to content
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

Empty body on GET requests #39

Closed
AnatolyRugalev opened this issue Jun 7, 2016 · 4 comments
Closed

Empty body on GET requests #39

AnatolyRugalev opened this issue Jun 7, 2016 · 4 comments
Assignees
Labels
Milestone

Comments

@AnatolyRugalev
Copy link

I'm experiencing problems after fresh update.

Looks like GET method here is redunant

@klimov-paul
Copy link
Member

Which problems?

@AnatolyRugalev
Copy link
Author

@klimov-paul After update Response object always contains empty $content after GET request.

$response = Yii::$app->httpclient->get('http://httpbin.org/get')->send();
var_dump($response->getStatusCode()); // string(3) "200"
var_dump($response->getContent()); // string(0) ""

@klimov-paul
Copy link
Member

99f68c9

@klimov-paul klimov-paul added the type:bug Bug label Jun 7, 2016
@klimov-paul klimov-paul self-assigned this Jun 7, 2016
@klimov-paul klimov-paul added this to the 2.0 milestone Jun 7, 2016
@AnatolyRugalev
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants