Skip to content

Commit

Permalink
proxy_test: Fix pre_response_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
chfoo committed Jan 27, 2015
1 parent 7abea0f commit fb8c4fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wpull/proxy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ def request_callback(request):
print(request)
cookie_jar_wrapper.add_cookie_header(request)

def response_callback(request, response):
def pre_response_callback(request, response):
print(response)
cookie_jar_wrapper.extract_cookies(response, request)

proxy.request_callback = request_callback
proxy.response_callback = response_callback
proxy.pre_response_callback = pre_response_callback

yield From(trollius.start_server(proxy, sock=proxy_socket))

Expand Down

0 comments on commit fb8c4fa

Please sign in to comment.