From 133ef0f1729e35b292b5ffc5b5d87f3c9e21140d Mon Sep 17 00:00:00 2001 From: Michael Kriese <michael.kriese@visualon.de> Date: Wed, 29 Jul 2020 06:39:27 +0200 Subject: [PATCH] fix(internal): forward legacy http url (#6872) --- lib/util/http/legacy.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/util/http/legacy.ts b/lib/util/http/legacy.ts index fa4de81774..19bbf68455 100644 --- a/lib/util/http/legacy.ts +++ b/lib/util/http/legacy.ts @@ -26,6 +26,12 @@ Object.defineProperty(HttpError.prototype, 'headers', { }, }); +Object.defineProperty(HttpError.prototype, 'url', { + get: function url(this: HttpError) { + return this.response?.url; + }, +}); + export type GotLegacyError<E = unknown, T = unknown> = HttpError & { statusCode?: number; body: { -- GitLab