uv
a440735f - Ignore non-hash fragments in HTML API responses (#11107)

Commit
322 days ago
Ignore non-hash fragments in HTML API responses (#11107) ## Summary I'm not a fan of registries including fragments here that aren't hashes, but the spec doesn't expressly forbid it. I think it's reasonable to ignore them. Specifically, the spec is here: https://packaging.python.org/en/latest/specifications/simple-repository-api/. It says that: > The URL **SHOULD** include a hash in the form of a URL fragment with the following syntax: `#<hashname>=<hashvalue>`, where `<hashname>`he lowercase name of the hash function (such as sha256) and `<hashvalue>` is the hex encoded digest. But it doesn't mention other fragments. Closes https://github.com/astral-sh/uv/issues/7257.
Author
Parents
Loading