-
Notifications
You must be signed in to change notification settings - Fork 3
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
Error since 2.2.1 with multiple Vary headers Google API #494
Comments
Hey, Same happens making a call to azure oauth service (server also running on php 8.1), we get an error:
Looks like the validation is too strict. |
Can you provide a stack trace, please? |
@TimWolla added it in the start post. As far as i can see it goes "wrong" in asserting the response. |
This is a bug in The standards compliant way to provide the values is either:
|
Hi @TimWolla, Looks like that change in 2.2.1:
Solved my problem. Thanks! |
@wlodekj That's what I suspected seeing your example header. See my comment over here for details: #489 (comment) |
Closing since this new behaviour is an important security fix. Do not try to bypass this, and do send multiple headers with the same key to us as an array. Google need to fix their API client to do that. |
PHP version: x.y.z (hint:
php --version
)8.1.4
Description
Since the update of 2.2.1 i noticed that my calls to the Google API are failing. To be more precise https://gmail.googleapis.com/batch. In the header there are multiple Vary headers available:
Vary: Origin
Vary: X-Origin
Vary: Referer
From Guzzle point of view they are grouped as an header:
The new validation however groups this as 1 header and throws an error.
How to reproduce
Hard to say i guess but make a call to the Google API with this and ensure multiple of the same header keys are available. I am also still diving into the issue to see if i notice anything odd though
Trace
The text was updated successfully, but these errors were encountered: