Skip to content
Unverified Commit 93baede1 authored by Randy Döring's avatar Randy Döring Committed by GitHub
Browse files

legacy repository: prefer JSON API to HTML API (#10672)

Motivation: some information (e.g. size and upload-time) that may be required in future for features like pylock.toml and minimumReleaseAge/exclude-newer is only available via JSON

Changes:
* prefer JSON in legacy repositories and fallback to HTML if JSON is not supported
* add support for JSON root pages
* add support for relative URLs in JSON pages
* add support for hashes in JSON pages
* extend legacy tests so that they are run with the HTML variant and the JSON variant
* harmonize HTML and JSON fixtures so that we get the same results in the tests
parent e7b52af0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment