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

Change default response format of the show action to HTML #3705

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jacob-carlborg-apoex
Copy link
Contributor

This is consistent with the other actions. When making HTTP requests using tools that are not web browsers, like curl or fetch in JavaScript without an explicit Accept header Rails will receive the request as with the Accept header set to */*. That means that all registered mime types are a potential match and Rails will pick the response type based on the order they're declared in the source code.

This is consistent with the other actions. When making HTTP requests
using tools that are not web browsers, like `curl` or `fetch` in
JavaScript without an explicit `Accept` header Rails will receive the
request as with the `Accept` header set to `*/*`. That means that all
registered mime types are a potential match and Rails will pick the
response type based on the order they're declared in the source code.
@jacob-carlborg-apoex jacob-carlborg-apoex force-pushed the default-response-format-html branch from a1f5bbb to c7ea863 Compare December 19, 2024 15:11
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.

1 participant