lib/www/mechanize/file_response.rb in mechanize-0.8.4 vs lib/www/mechanize/file_response.rb in mechanize-0.8.5
- old
+ new
@@ -26,9 +26,11 @@
def content_length
return dir_body.length if directory?
::File.exists?(@file_path) ? ::File.stat(@file_path).size : 0
end
+ def each_header; end
+
def [](key)
return nil unless key.downcase == 'content-type'
return 'text/html' if directory?
return 'text/html' if ['.html', '.xhtml'].any? { |extn|
@file_path =~ /#{extn}$/