Vote #72498
未完了Use request.format instead of request[:format]
0%
説明
Allow request headers to determine the format, not just URL extension
use request.format instead of request[:format]
journals
Any particular reason to request this?
--------------------------------------------------------------------------------
request[:format] is really just a Rails convention. request.format adheres to the HTTP spec by responding to Accept header. Some client libraries will set the Accept header, e.g. application/json when connecting to the Redmine API.
--------------------------------------------------------------------------------