Skip to content
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

Use final ref for projjson #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

gadomski
Copy link
Member

The current ref, https://proj.org/schemas/v0.7/projjson.schema.json, is actually a redirect to https://proj.org/en/latest/schemas/v0.7/projjson.schema.json:

$ curl -s -D - https://proj.org/schemas/v0.7/projjson.schema.json -o /dev/null | head -n5
HTTP/2 302 
date: Thu, 26 Sep 2024 12:10:21 GMT
content-type: text/html; charset=utf-8
content-length: 0
location: https://proj.org/en/latest/schemas/v0.7/projjson.schema.json

This isn't wrong per-se, but does cause an extra request when validating which is slightly annoying. This was discovered because that redirect is causing breakages in rare situations, e.g. stac-utils/pystac#1409.

@gadomski gadomski self-assigned this Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant