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

Response body is always empty #10

Closed
WalentinG opened this issue Feb 8, 2022 · 1 comment
Closed

Response body is always empty #10

WalentinG opened this issue Feb 8, 2022 · 1 comment

Comments

@WalentinG
Copy link

workerman/http-client/src/Request.php:321

    $this->_response = new Response(
        $parts[1],
        $response_data['headers'],
        '',
        explode('/', $parts[0])[1],
        isset($parts[2]) ? $parts[2] : null
    );
@walkor
Copy link
Owner

walkor commented Feb 9, 2022

The complete body will be written later through the write method.
https://github.com/walkor/http-client/blob/master/src/Request.php#L425

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

No branches or pull requests

2 participants