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 accepts header, not ancient browser detection #2996

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

haarg
Copy link
Member

@haarg haarg commented Feb 25, 2024

The proper way to check if a request should return JSON is using the Accepts header. And since we're making these requests in JS, we can control that.

The browser detection in the ForBrowsers plugin is based on a IE7 world.

oalders
oalders previously approved these changes Feb 25, 2024
The proper way to check if a request should return JSON is using the
Accepts header. And since we're making these requests in JS, we can
control that.

The browser detection in the ForBrowsers plugin is based on a IE7 world.
@haarg haarg force-pushed the haarg/accepts-not-detect branch from 37813f3 to 6e11118 Compare February 25, 2024 19:11
@haarg haarg merged commit cea5906 into master Feb 29, 2024
6 checks passed
@haarg haarg deleted the haarg/accepts-not-detect branch February 29, 2024 16:12
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