Uvicorn: Httptools trims long urls

Created on 29 Dec 2020  路  2Comments  路  Source: encode/uvicorn

Prompted as part of the discussion in #344 , it seems httptools doenst handle well long url, see #925 for a failing test

I can say that for my case the issue is not URLs longer than 65,535 characters, but rather that on_url is being called multiple times for whatever reason: https://github.com/nodejs/http-parser#parsing-urls.

_Originally posted by @malthejorgensen in https://github.com/encode/uvicorn/issues/344#issuecomment-752074479_

bug htthttptools

All 2 comments

@euri10 There is a pr to move httptools from http-parser t么 llhttp. If the bug is in http-parser, this might help!

Cool, I subscribed to it thanks for the heads up @victoraugustolls !

Was this page helpful?
0 / 5 - 0 ratings