summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias H <apoc@sixserv.org>2014-03-27 08:14:32 +0100
committerMatthias H <apoc@sixserv.org>2014-03-27 08:14:32 +0100
commit98d6450f694f87f0bacd94dd20eee6cec67f7aaa (patch)
treeebe7ab1c5eb1cd05b278ba9333dd8d1edb32e27e
parent835011225c3736dd64a63d70ce4d551adfca9857 (diff)
[httputil] fix unknown fallback encoding
-rw-r--r--lib/rbot/core/utils/httputil.rb2
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