-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Change default response format of the show action to HTML
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.
1 parent
f4cf4b6
commit a1f5bbb
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters