Module: Leadlight::HeaderHelpers
- Included in:
- Request
- Defined in:
- lib/leadlight/header_helpers.rb
Instance Method Summary collapse
Instance Method Details
#clean_content_type(content_type) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/leadlight/header_helpers.rb', line 3 def clean_content_type(content_type) unless content_type.nil? mimetype = MIME::Type.new(content_type) content_type = "#{mimetype.media_type}/#{mimetype.sub_type}" end content_type end |