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

Chunk headers to comply with Varnish max length #3843

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

julienfalque
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tickets fixes #3168 and #1856
License MIT
Doc PR -

This PR chunks the regex to send it in separate requests to avoid 400 Bad Request responses from Varnish when the maximum header length is exceeded. The default limit is 8000 for now since it's Varnish's default value, but that could be easily made configurable in another iteration (maybe for next minor release instead of 2.5?).

Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@soyuka soyuka merged commit 6a56b62 into api-platform:2.5 Nov 24, 2020
@soyuka
Copy link
Member

soyuka commented Nov 24, 2020

thansk @julienfalque !

@soyuka
Copy link
Member

soyuka commented Nov 24, 2020

👍 to make this value configurable

@julienfalque
Copy link
Contributor Author

I'll work on that then :)

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

Successfully merging this pull request may close these issues.

None yet

3 participants