From c8bb336d42976e9ea64891e6880cc001a24d716b Mon Sep 17 00:00:00 2001 From: petergardfjall Date: Sat, 17 Sep 2016 21:27:56 +0200 Subject: [PATCH] clean auth ticket validation url of backslashes --- garminexport/garminclient.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/garminexport/garminclient.py b/garminexport/garminclient.py index ea21bfe..d9f113b 100755 --- a/garminexport/garminclient.py +++ b/garminexport/garminclient.py @@ -109,6 +109,9 @@ class GarminClient(object): flow_execution_key = self._get_flow_execution_key(params) log.debug("flow execution key: '{}'".format(flow_execution_key)) validation_url = self._get_auth_ticket(flow_execution_key, params) + # recently, the validation url has started to escape slash characters + # (with a backslash). remove any such occurences. + validation_url = validation_url.replace("\/", "/") log.debug("auth ticket validation url: {}".format(validation_url)) self._validate_auth_ticket(validation_url)