encode hostname as unicode before adding as header
This commit is contained in:
parent
b6bd75a0e8
commit
12e4f56d4b
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ def send_heartbeat(project=None, branch=None, hostname=None, stats={}, key=None,
|
|||
'Authorization': auth,
|
||||
}
|
||||
if hostname:
|
||||
headers['X-Machine-Name'] = hostname
|
||||
headers['X-Machine-Name'] = u(hostname)
|
||||
proxies = {}
|
||||
if proxy:
|
||||
proxies['https'] = proxy
|
||||
|
|
Loading…
Reference in a new issue