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

feat: Allow JSON requests with a vendor specific JSON content type #34

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

mattbearman
Copy link
Contributor

We found Apia was rejecting webhook requests from distribution as the content type was not application/json but application/vnd.docker.distribution.events.v2+json

This change allows for either standard json content type (ie: application/json) or a vendor specific type with a +json suffix (eg: application/vnd.docker.distribution.events.v2+json)

We found Apia was rejecting webhook requests from distribution as the
content type was not `application/json` but `application/vnd.docker.distribution.events.v2+json`

This change allows for either standard json content type (ie: application/json)
or a vendor specific type with a "+json" suffix (eg: application/vnd.docker.distribution.events.v2+json)
Copy link

@ikadix ikadix left a comment

Choose a reason for hiding this comment

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

🙌

@mattbearman mattbearman merged commit 3f20d6f into main Feb 28, 2025
8 of 9 checks passed
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.

3 participants