Permalink
Browse files

fixed a bug wrt original_host_name storing

  • Loading branch information...
1 parent bb92f79 commit 90836a7465bf0e6fbe37d5c8551fdfcb480be893 @scrubber scrubber committed Jan 31, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/scrubyt/core/navigation/agents/mechanize.rb
@@ -46,7 +46,7 @@ def self.fetch(doc_url, *args)
end
@@current_doc_url = doc_url
- @@current_doc_protocol ||= determine_protocol
+ @@current_doc_protocol = determine_protocol
if mechanize_doc.nil? && @@current_doc_protocol != 'file'
handle_relative_path(doc_url)
@@ -64,7 +64,7 @@ def self.fetch(doc_url, *args)
@@hpricot_doc = Hpricot(PreFilterDocument.br_to_newline(open(@@current_doc_url).read))
else
@@hpricot_doc = Hpricot(PreFilterDocument.br_to_newline(@@mechanize_doc.body))
- store_host_name(self.get_current_doc_url) if self.get_current_doc_url # in case we're on a new host
+ store_host_name(self.get_current_doc_url) #if self.get_current_doc_url # in case we're on a new host
end
end

0 comments on commit 90836a7

Please sign in to comment.