Skip to content

Commit

Permalink
fix: Add check for trailing / in url
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Finlinson committed Feb 22, 2019
1 parent 6a68fe7 commit 0764aa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class WebApiConfig {
this.url = url;
} else {
this.url = `${url}/api/data/v${version}`;
this.url = this.url.replace('//', '/');
}

this.version = version;
Expand Down

0 comments on commit 0764aa7

Please sign in to comment.