Commit eb7c334b authored by Anselm Stordeur's avatar Anselm Stordeur
Browse files

fix: remove trailing slash from url if needed

parent 8541b00d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -98,6 +98,9 @@ export class Client {
   * TODO: remove headers/version
   */
  constructor(protected httpClient: HttpClientInterface, protected url: string, protected version?: string) {
    // cut trailing slash if needed
    this.url = this.url.replace(/\/$/, '');

    if (typeof version === 'string') {
      // set header to tell proxy to select the correct backend
      this.headers = {
+1 −1

File changed.

Contains only whitespace changes.