From: wmorgan Date: Thu, 26 Jul 2007 05:56:04 +0000 (+0000) Subject: content-type parsing bugfix thanks to Nicolas Pouillard X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=554f8222ad56f41775acbcbc56ed95e4d8248640;p=sup content-type parsing bugfix thanks to Nicolas Pouillard git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@509 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/message.rb b/lib/sup/message.rb index c8282ff..850c558 100644 --- a/lib/sup/message.rb +++ b/lib/sup/message.rb @@ -325,7 +325,7 @@ private def self.decode_and_convert m charset = - if m.header.field?("content-type") && m.header.fetch("content-type") =~ /charset=(.*?)(;|$)/ + if m.header.field?("content-type") && m.header.fetch("content-type") =~ /charset="?(.*?)"?(;|$)/ $1 end