Permalink
Browse files

fix fetching code from URL

  • Loading branch information...
1 parent 194a23a commit e97f829315e561c2ba2fae868fea83130bbbc687 @mislav committed Aug 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 code.rb
View
@@ -7,7 +7,7 @@
# require 'net/https'
Net::HTTPResponse.class_eval do
- def http?
+ def html?
content_type == 'text/html' or content_type == 'application/xhtml+xml'
end
end

0 comments on commit e97f829

Please sign in to comment.