Skip to content

Commit

Permalink
since switching to garth and the mobile api we don't need the x-http-…
Browse files Browse the repository at this point in the history
…method-override anymore.
  • Loading branch information
ray0711 committed Oct 22, 2023
1 parent ee04db9 commit c69d7f8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions garminconnect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,11 @@ def set_gear_default(self, activityType, gearUUID, defaultGear=True):
f"{self.garmin_connect_gear_baseurl}{gearUUID}/"
f"activityType/{activityType}{defaultGearString}"
)
return self.garth.post(
"connectapi", url, {"x-http-method-override": method_override}
return self.garth.request(
method_override,
"connectapi",
url,
api=True
)

class ActivityDownloadFormat(Enum):
Expand Down

0 comments on commit c69d7f8

Please sign in to comment.