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

Integer value in headers #273

Closed
hutnikau opened this issue Jun 6, 2019 · 1 comment
Closed

Integer value in headers #273

hutnikau opened this issue Jun 6, 2019 · 1 comment

Comments

@hutnikau
Copy link

hutnikau commented Jun 6, 2019

When \GuzzleHttp\PrepareBodyMiddleware modifies headers it calls
$request->getBody()->getSize() to set Content-Length header, and the type of of that value is integer : https://github.com/guzzle/guzzle/blob/master/src/PrepareBodyMiddleware.php#L55

Thus this change always leads to Header value must be a string or an array of strings. exception:
https://github.com/guzzle/psr7/pull/250/files#diff-5abca4d9d5693da46d10a54795b1192dR157

@Tobion
Copy link
Member

Tobion commented Jun 6, 2019

#272 allows numeric values again

@Tobion Tobion closed this as completed Jun 6, 2019
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