zephyr_mirror: urlencode Unicode properly

(imported from commit 74d58039e4b763a2738bb485ab9ba6aa9c802d92)
This commit is contained in:
Keegan McAllister 2012-09-11 17:17:10 -04:00
parent 1d9fb55b1a
commit 5090a3fb91
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def browser_login():
def send_zephyr(zeph):
browser.addheaders.append(('X-CSRFToken', csrf_token))
zephyr_data = urllib.urlencode(zeph.items())
zephyr_data = urllib.urlencode([(k, v.encode('utf-8')) for k,v in zeph.items()])
browser.open("https://app.humbughq.com/forge_zephyr/", zephyr_data)
def unwrap_lines(body):