Skip to content

Commit

Permalink
Stripping trailing slash on ingest url (#1316)
Browse files Browse the repository at this point in the history
* Bugfix stripping trailing slash.

* Updated Changelog
  • Loading branch information
sunset666 authored Mar 21, 2024
1 parent 67c99b3 commit 2ca4e4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- Update GeoMx NGS directory schema
- Ported murine from SenNet
- Update Histology directory schema
- Bugfix stripping trailing slash in ingest api url

## v0.0.17

Expand Down
2 changes: 1 addition & 1 deletion src/ingest_validation_tools/validation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def get_assaytype_data(
if not ingest_url:
ingest_url = "https://ingest.api.hubmapconsortium.org/"
response = requests.post(
f"{ingest_url}/assaytype",
f"""{ingest_url.strip("/")}/assaytype""",
headers={"Content-Type": "application/json"},
data=json.dumps(row),
)
Expand Down

0 comments on commit 2ca4e4c

Please sign in to comment.