Skip to content

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
@mshibuya mshibuya added this to the 4.0.0 milestone Sep 20, 2025
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