Class: Rack::Request
Direct Known Subclasses
Instance Method Summary collapse
-
#content_type_with_fix ⇒ Object
it returns “application/x-www-form-urlencoded; charset=UTF-8” instead of “application/x-www-form-urlencoded”.
- #params ⇒ Object
- #params_with_wrong_encoding ⇒ Object
Instance Method Details
#content_type_with_fix ⇒ Object
it returns “application/x-www-form-urlencoded; charset=UTF-8” instead of “application/x-www-form-urlencoded”
24 25 26 |
# File 'lib/rad/http/_support/rack/fixes.rb', line 24 def content_type_with_fix content_type_without_fix && content_type_without_fix.split(';').first end |
#params ⇒ Object
19 20 21 |
# File 'lib/rad/http/_support/rack/fixes.rb', line 19 def params @params ||= encode_in_utf8(params_with_wrong_encoding) end |
#params_with_wrong_encoding ⇒ Object
18 |
# File 'lib/rad/http/_support/rack/fixes.rb', line 18 alias_method :params_with_wrong_encoding, :params |