Skip to content

Commit

Permalink
fix: Remove trailing / from stac baseUrl [fix #15]
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverroick committed Jan 25, 2023
1 parent b763302 commit 05e752c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stac-api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class StacApi {
baseUrl: string;

constructor(baseUrl: string) {
this.baseUrl = baseUrl;
this.baseUrl = baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl;
}

fixBboxCoordinateOrder(bbox?: Bbox): Bbox | undefined {
Expand Down

0 comments on commit 05e752c

Please sign in to comment.