3 ms·
> AIOHTTP: The Python int constructor is used to parse Content-Lengths and chunk-sizes, so _, +, and - are misinterpreted. Fun. I believe the fix is incomplete
by Retr0id 3y ago
> AIOHTTP: The Python int constructor is used to parse Content-Lengths and chunk-sizes, so _, +, and - are misinterpreted.
Fun. I believe the fix is incomplete here[1]. Python's int() constructor (and related methods) accepts integers comprised of any unicode numeral, for example, int("٦٦٦") == 666, and "٦٦٦".isdecimal() == True.
NB: I haven't tested this more thoroughly and I'm not sure I'm actually looking at the right diff for the fix.
[1] https://github.com/aio-libs/aiohttp/pull/7663/files#diff-197153342549adb4b25580f8b842876841eec42dc48ae12cb72ba2ae4f7ced10L314-R325 https://github.com/aio-libs/aiohttp/pull/7663/files#diff-197...