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

[Backport 2.x] [Refactor] XContentType to parse Accept or Content-Type headers #3103

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport d86c88f from #3077

@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team as a code owner April 28, 2022 14:59
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 30c9d8c
Log 4857

Reports 4857

@dblock
Copy link
Member

dblock commented Apr 28, 2022

DCO Le Sigh

Refactors XContentType.fromMediaTypeOrFormat to fromMediaType so Accept headers
and Content-Type headers can be parsed separately. This helps in reusing the
same parse logic in for REST Versioning API support.

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
(cherry picked from commit d86c88f)
@nknize nknize force-pushed the backport/backport-3077-to-2.x branch from 30c9d8c to 2297459 Compare April 28, 2022 22:38
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 2297459
Log 4858

Reports 4858

@nknize nknize merged commit 872dc2f into 2.x Apr 29, 2022
@github-actions github-actions bot deleted the backport/backport-3077-to-2.x branch April 29, 2022 14:41
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.

4 participants