43
44
45
46
47
48
49
50
|
# File 'lib/soap/streamHandler.rb', line 43
def self.parse_media_type(str)
if /^#{ MediaType }(?:\s*;\s*charset=([^"]+|"[^"]+"))?$/i !~ str
return nil
end
charset = $1
charset.gsub!(/"/, '') if charset
charset || 'us-ascii'
end
|