Module: XMLRPC::ParseContentType

Defined in:
lib/blogpost.rb

Instance Method Summary collapse

Instance Method Details

#parse_content_type(str) ⇒ Object


23
24
25
26
27
# File 'lib/blogpost.rb', line 23

def parse_content_type(str)
  a, *b = str.split(";")
  a = "text/xml" if a == "application/xml"
  return a.strip.downcase, *b
end