diff --git a/rowers/tpstuff.py b/rowers/tpstuff.py index 352ecdf1..261bb06f 100644 --- a/rowers/tpstuff.py +++ b/rowers/tpstuff.py @@ -217,7 +217,7 @@ def uploadactivity(access_token,filename,description='', headers = { - "Content-Type": "application/json", + 'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Bearer %s' % access_token } @@ -247,6 +247,8 @@ def uploadactivity(access_token,filename,description='', print "" return 0,resp.reason,resp.status_code,headers else: + print headers + print json.dumps(headers) return resp.json()[0]["Id"],"ok",200,"" return 0