lib/rbkb/http/base.rb in emonti-rbkb-0.6.7 vs lib/rbkb/http/base.rb in emonti-rbkb-0.6.8
- old
+ new
@@ -59,10 +59,10 @@
# a Content-Length without actual content.
#
def content_length(hdrs=@headers)
raise "headers is nil?" if not hdrs
if( (not @opts[:ignore_content_length]) and
- hdrs.get_header_value("Content-Length").first =~ /^(\d+)$/ )
+ hdrs.get_header_value("Content-Length").to_s =~ /^(\d+)$/ )
$1.to_i
end
end