mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-23 01:53:00 +00:00
fix: remove trailing slash from url if needed
This commit is contained in:
@@ -98,6 +98,9 @@ export class Client {
|
|||||||
* TODO: remove headers/version
|
* TODO: remove headers/version
|
||||||
*/
|
*/
|
||||||
constructor(protected httpClient: HttpClientInterface, protected url: string, protected version?: string) {
|
constructor(protected httpClient: HttpClientInterface, protected url: string, protected version?: string) {
|
||||||
|
// cut trailing slash if needed
|
||||||
|
this.url = this.url.replace(/\/$/, '');
|
||||||
|
|
||||||
if (typeof version === 'string') {
|
if (typeof version === 'string') {
|
||||||
// set header to tell proxy to select the correct backend
|
// set header to tell proxy to select the correct backend
|
||||||
this.headers = {
|
this.headers = {
|
||||||
|
|||||||
Reference in New Issue
Block a user