From b887a411c7e4474bad7ba2d2817855989968a3b3 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sat, 1 May 2021 02:24:36 +0200 Subject: [PATCH] Use URIs.resolvereference for redirects, fixes #435, fixes #626. --- Project.toml | 2 +- src/RedirectRequest.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 0519c6f13..7cb4bbc2e 100644 --- a/Project.toml +++ b/Project.toml @@ -15,7 +15,7 @@ URIs = "5c2747f8-b7ea-4ff2-ba2e-563bfd36b1d4" [compat] IniFile = "0.5" MbedTLS = "0.6.8, 0.7, 1" -URIs = "1.1" +URIs = "1.3" julia = "0.7, 1" [extras] diff --git a/src/RedirectRequest.jl b/src/RedirectRequest.jl index 2d087a8b3..53fa3b173 100644 --- a/src/RedirectRequest.jl +++ b/src/RedirectRequest.jl @@ -32,7 +32,7 @@ function request(::Type{RedirectLayer{Next}}, kw = merge(merge(NamedTuple(), kw), (parent = res,)) oldurl = url - url = absuri(location, url) + url = resolvereference(url, location) if forwardheaders headers = filter(headers) do h # false return values are filtered out