Class: Rack::Request

Inherits:
Object show all
Defined in:
lib/rad/http/_support/rack/fixes.rb

Direct Known Subclasses

Rad::Http::Request

Instance Method Summary collapse

Instance Method Details

#content_type_with_fixObject

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

#paramsObject



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_encodingObject



18
# File 'lib/rad/http/_support/rack/fixes.rb', line 18

alias_method :params_with_wrong_encoding, :params