Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed a bug wrt original_host_name storing

  • Loading branch information...
commit 90836a7465bf0e6fbe37d5c8551fdfcb480be893 1 parent bb92f79
@scrubber scrubber authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/scrubyt/core/navigation/agents/mechanize.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.