-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add include/exclude filter support for pull-through caching #747
Conversation
e9a4c7a
to
375bf2f
Compare
This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution! |
This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details. |
This pull request is no longer marked for closure. |
54cdf1b
to
f7f6068
Compare
89415ed
to
11a9083
Compare
if d.headers["content-type"] == "application/vnd.pypi.simple.v1+json": | ||
page = ProjectPage.from_json_data(json.load(open(d.path, "rb")), base_url=remote.url) | ||
else: | ||
page = ProjectPage.from_html(package, open(d.path, "rb").read(), base_url=remote.url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not requesting a change, just a question:
Are JSON responses from the simple API a recent addition? How could it be HTML or JSON?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep new PEP: https://peps.python.org/pep-0691/. The accept headers specify that we accept both the json + html (normal) response with a preference for the new json format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, that's an improvement tbh.
11a9083
to
5a91413
Compare
5a91413
to
fc82100
Compare
wip