Skip to content

Commit

Permalink
Http2 to http (#137)
Browse files Browse the repository at this point in the history
* add hostname gbfs.prod.sharedmobility.ch

* identify main gbfs path

* check for /gbfs path
  • Loading branch information
ThorstenFroehlinghaus authored Nov 11, 2024
1 parent ce57293 commit b8d3210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/converters/gbfs_https_to_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class GbfsHttpsToHttpConverter(BaseConverter):
def convert(self, data: Union[dict, list], path: str) -> Union[dict, list]:
if not isinstance(data, dict):
return data
if not (path.endswith('/gbfs.json') or '/gbfs?' in path):
if not (path.endswith('/gbfs.json') or path.endswith('/gbfs')):
return data

if not isinstance(data, dict) or 'data' not in data or not isinstance(data['data'], dict):
Expand Down

0 comments on commit b8d3210

Please sign in to comment.