diff options
author | Matthias H <apoc@sixserv.org> | 2014-03-27 08:14:32 +0100 |
---|---|---|
committer | Matthias H <apoc@sixserv.org> | 2014-03-27 08:14:32 +0100 |
commit | 98d6450f694f87f0bacd94dd20eee6cec67f7aaa (patch) | |
tree | ebe7ab1c5eb1cd05b278ba9333dd8d1edb32e27e | |
parent | 835011225c3736dd64a63d70ce4d551adfca9857 (diff) |
[httputil] fix unknown fallback encoding
-rw-r--r-- | lib/rbot/core/utils/httputil.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/core/utils/httputil.rb b/lib/rbot/core/utils/httputil.rb index aba730f9..39a47816 100644 --- a/lib/rbot/core/utils/httputil.rb +++ b/lib/rbot/core/utils/httputil.rb @@ -44,7 +44,7 @@ module ::Net ctype = self['content-type'] || 'text/html' return nil unless ctype =~ /^text/i || ctype =~ /x(ht)?ml/i - charsets = ['latin1'] # should be in config + charsets = ['ISO-8859-1'] # should be in config if ctype.match(/charset=["']?([^\s"']+)["']?/i) charsets << $1 |