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

httptools.parse_url incorrect parsing Long URL (> 65535 symbols) #43

Closed
MaksymSkorupskyi opened this issue Dec 18, 2019 · 1 comment
Closed

Comments

@MaksymSkorupskyi
Copy link

We have issues when passing really long URL through Sanic. It uses httptools.parse_url for parsing URL in Request object.
It seems that problem is in C++ integer limitations (values from 0 to 65535 (2**16-1)).
So, If URL is longer 65535 symbols - it will be trimmed.
https://github.com/MagicStack/httptools/blob/master/httptools/parser/parser.pyx#L406

Is it possible to implement bigint instead of int variable in httptools.parse_url or smth like that for such cases? :)

Thanks

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