Skip to content

Commit

Permalink
Merge pull request #177 from alenrajsp/main
Browse files Browse the repository at this point in the history
Missing elevation identification bugfix
  • Loading branch information
firefly-cpp authored Mar 27, 2024
2 parents 7137c5b + e690d5a commit 87be2d6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sport_activities_features/missing_elevation_identification.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ def fetch_elevation_data(self, payload_formatting: bool = True) -> list:
path = url_parts.path

# Establish connection
connection = http.client.HTTPSConnection(host)

if self.open_elevation_api.startswith("http://"):
connection = http.client.HTTPConnection(host)
else:
connection = http.client.HTTPSConnection(host)

# Make the POST request
connection.request("POST", path, body=json_payload, headers=headers)

Expand Down

0 comments on commit 87be2d6

Please sign in to comment.