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

Allow to provide HTTP headers #239

Merged
merged 2 commits into from
Jan 9, 2025
Merged

Conversation

vprivat-ads
Copy link
Contributor

@vprivat-ads vprivat-ads commented Dec 2, 2024

I need to provide an API key to my STAC catalogue in order to be able to validate it.

This PR adds support to stac-validator to provide as many HTTP headers as needed with a new option --header that can be provided multiple times on the CLI.

@jonhealy1
Copy link
Collaborator

I think a pre-commit run --all-files would fix the error

@vprivat-ads vprivat-ads marked this pull request as draft December 2, 2024 17:08
@vprivat-ads vprivat-ads force-pushed the http_headers branch 6 times, most recently from b3d5202 to ef2672c Compare December 13, 2024 15:37
@vprivat-ads vprivat-ads marked this pull request as ready for review December 13, 2024 15:38
@vprivat-ads vprivat-ads force-pushed the http_headers branch 7 times, most recently from d231810 to 2bd85bb Compare December 13, 2024 15:59
@vprivat-ads
Copy link
Contributor Author

Hello @jonhealy1 the PR is ready for review :)

@jonhealy1 jonhealy1 self-requested a review January 9, 2025 04:07
Copy link
Collaborator

@jonhealy1 jonhealy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good

@jonhealy1 jonhealy1 merged commit 7983a81 into stac-utils:main Jan 9, 2025
6 checks passed
@vprivat-ads vprivat-ads deleted the http_headers branch January 9, 2025 09:25
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.

2 participants