Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update request future (#1) #2

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Update handlers.py

rename background callback (bg_cp) to `response_hook`
  • Loading branch information
wangsha committed Jan 2, 2019
commit 6a7f9f4eb39bc739337fffa3ebaa46a4918b95ca
@@ -10,11 +10,11 @@



def bg_cb(resp, *args, **kwargs):
def response_hook(resp, *args, **kwargs):
""" Don't do anything with the response """
pass

session.hooks['response'] = bg_cb
session.hooks['response'] = response_hook

class HTTPSHandler(logging.Handler):
def __init__(self, url, fqdn=False, localname=None, facility=None):
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.