diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index ac9cf7a80c26d8aef72b0f5f7323e9a23459c759..97a9b7be863fa1b218664daeb34493a9a93ea8da 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -179,6 +179,7 @@ def original_url # The +String+ MIME type of the request # # app.get "/articles" + # app.request.media_type # # => "application/x-www-form-urlencoded" def media_type content_mime_type.to_s