"fixed" MechanizeSession, Session expects get and post to have 3 arguments

This commit is contained in:
Jeremy Burks 2008-10-27 22:01:48 -05:00
parent 71adad4ada
commit 40c6b6ed44
1 changed files with 2 additions and 2 deletions

View File

@ -6,11 +6,11 @@ module Webrat
@mechanize = mechanize @mechanize = mechanize
end end
def get(url, data) def get(url, data, headers_argument_not_used = nil)
@mechanize_page = @mechanize.get(url, data) @mechanize_page = @mechanize.get(url, data)
end end
def post(url, data) def post(url, data, headers_argument_not_used = nil)
@mechanize_page = @mechanize.post(url, data) @mechanize_page = @mechanize.post(url, data)
end end