Skip to content

Commit

Permalink
Typo & replace 'https:/' with 'https://'
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-turner-1 committed Jan 24, 2025
1 parent 4d83e74 commit e0241c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/access_py_telemetry/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ def send_api_request(
f"Endpoint for '{service_name}' not found in {self.endpoints}"
) from e

endpoint = str(PurePosixPath(self.server_url) / endpoint.lstrip("/"))
endpoint = str(PurePosixPath(self.server_url) / endpoint.lstrip("/")).replace(
"http:/", "http://"
)

send_in_loop(endpoint, telemetry_data, self._request_timeout)
return None
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def test_api_handler_send_api_request(api_handler, capsys):

api_handler.endpoints = {
"catalog": "intake/update",
"payu": "ayu/update",
"payu": "payu/update",
}

api_handler._extra_fields = {
Expand Down

0 comments on commit e0241c6

Please sign in to comment.