Skip to content

Commit

Permalink
Browser: Added debug code to print stored responses
Browse files Browse the repository at this point in the history
[Issue #50]
  • Loading branch information
Zapotek committed Aug 30, 2013
1 parent f1e8fe7 commit 21df20d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/arachni/browser.rb
Expand Up @@ -543,6 +543,9 @@ def captured_pages

# @return [Page] Converts the current browser window to a {Page page}.
def to_page
ap "Converting: #{url}"
ap @responses.keys

page = get_response( url ).deep_clone.to_page
page.body = source.dup
page.cookies |= cookies.dup
Expand Down Expand Up @@ -819,6 +822,9 @@ def copy_response_data( source, destination )
end

def clear_responses
ap 'Clearing'
ap @responses.keys

@responses.clear
end

Expand Down

0 comments on commit 21df20d

Please sign in to comment.