Commit 5c8f3765 authored by hupantingxue's avatar hupantingxue

Add user-defined http header;

parent 2113e071
......@@ -22,6 +22,9 @@ class JPush(object):
version=None, params=None):
headers = {}
headers['user-agent'] = 'jpush-api-python-client'
headers['connection'] = 'keep-alive'
headers['charset'] = 'utf-8'
headers['content-type'] = 'application/json'
logger.debug("Making %s request to %s. Headers:\n\t%s\nBody:\n\t%s",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment