Rack::Accept::Request overrides media_type but changes the return value. Instead of returning the request's content-type -less charset, like its parent, it returns an accept header (as an instance of MediaType). This prevents one from retrieving POST params:
Rack::Accept::Request
overridesmedia_type
but changes the return value. Instead of returning the request's content-type -less charset, like its parent, it returns an accept header (as an instance ofMediaType
). This prevents one from retrieving POST params:Prints:
Maybe it's better to call the method
accept