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
MAX_REQUEST_PATH_LENGTH = 1024; Why? #404
Comments
It's something that the parser inherited from mongrel, but we can certainly change it. What do you think a good value is? |
Thanks for looking at this so quickly. According to the RFC "The HTTP protocol does not place any a priori limit on the length of a URI." It appears that IE enforces the shortest maximum at 2083 bytes, with other browsers supporting much higher limits. It seems like at least allowing 2083 would be nice, or maybe not enforcing anything at all since it isn't defined in the standard. |
@evanphx any estimate on when a release with the higher maximum will be available? |
Made a fix to increase URI path length to 2048. Included tests to validate. |
This has been changed to 2048. |
Is it worth the effort of making this configurable via puma config? I am in a situation where I would like to have this value be much larger than 2048. |
rfc2616 3.2.1
|
Why is there a limit placed on the path length? Especially one that is considerably smaller than the one imposed by any browser. When working with paths that contain non-ascii characters that need to be encoded the length can frequently by longer than 1024 characters.
Is there a way to override this setting?
The text was updated successfully, but these errors were encountered: