summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-10-11 07:37:10 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-10-11 07:37:10 +0000
commit47372190dc5982739ae568534dfb01b178a08af8 (patch)
tree0d22e6c767ac9b2f09b3fcd6967ab4f976c08b8b /lib/rbot
parent72cece8d09ae0f2835eed996e15ddfe3cb95045f (diff)
httputil: beware that content-type header may be absent
Diffstat (limited to 'lib/rbot')
-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 00164616..3b12a976 100644
--- a/lib/rbot/core/utils/httputil.rb
+++ b/lib/rbot/core/utils/httputil.rb
@@ -39,7 +39,7 @@ module ::Net
charsets = ['latin1'] # should be in config
- if self['content-type'].match(/charset=["']?([^\s"']+)["']?/i)
+ if ctype.match(/charset=["']?([^\s"']+)["']?/i)
charsets << $1
debug "charset #{charsets.last} added from header"
end