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

Check content type to determine if request is an API call. #2067

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

stuzart
Copy link
Member

@stuzart stuzart commented Nov 18, 2024

Updated json_api_request? to also check the content type of the request to determine if it is a JSON api call.

Ran the api integration tests without checking the Accept header, and updated any tests that relied on Accept only.

posts and patches will check for content-type as well as accept. updated any tests that were using only the accept header
@stuzart stuzart changed the base branch from main to seek-1.16 November 18, 2024 11:35
@stuzart stuzart added this to the 1.16.0 milestone Nov 18, 2024
@stuzart stuzart merged commit 311f558 into seek-1.16 Nov 18, 2024
23 checks passed
@stuzart stuzart deleted the content-type-2066 branch November 18, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants