From a828c8493924684c75a8df1ba7a733cae325424f Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Fri, 26 Feb 2021 15:31:20 -0500 Subject: [PATCH] fix bug in handling relative redirects --- http2.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/http2.d b/http2.d index 3042db9..373579e 100644 --- a/http2.d +++ b/http2.d @@ -724,13 +724,16 @@ class HttpRequest { this.cache = cache; } + private Uri where; + private ICache cache; /// Final url after any redirections string finalUrl; void populateFromInfo(Uri where, HttpVerb method) { - auto parts = where; + auto parts = where.basedOn(this.where); + this.where = parts; finalUrl = where.toString(); requestParameters.method = method; requestParameters.unixSocketPath = where.unixSocketPath;