diff --git a/projects/http/package.json b/projects/http/package.json index 7f79e17..7412836 100644 --- a/projects/http/package.json +++ b/projects/http/package.json @@ -1,6 +1,6 @@ { "name": "@angular-cool/http", - "version": "15.0.3", + "version": "15.0.4", "description": "Cool features over angular Http Client.", "peerDependencies": { "@angular/common": ">=10.0.0", diff --git a/projects/http/src/lib/cool-http.service.ts b/projects/http/src/lib/cool-http.service.ts index a2a9881..6ea380c 100644 --- a/projects/http/src/lib/cool-http.service.ts +++ b/projects/http/src/lib/cool-http.service.ts @@ -284,7 +284,7 @@ export class CoolHttp { returnUrl = this._baseUrl + returnUrl; } - return returnUrl.replace(/[^:]\/\//g, '/'); + return returnUrl.replace(/([^:])\/\//g, '$1/'); } private _modifyOptions(options: RequestOptions): AngularRequestOptions {