We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65b96ad commit 90df6fdCopy full SHA for 90df6fd
lib/req/steps.ex
@@ -1935,8 +1935,8 @@ defmodule Req.Steps do
1935
Logger.log(level, ["redirecting to ", location])
1936
end
1937
1938
- defp normalize_redirect_uri(%URI{scheme: "http", port: nil} = uri), do: %URI{uri | port: 80}
1939
- defp normalize_redirect_uri(%URI{scheme: "https", port: nil} = uri), do: %URI{uri | port: 443}
+ defp normalize_redirect_uri(%URI{scheme: "http", port: nil} = uri), do: %{uri | port: 80}
+ defp normalize_redirect_uri(%URI{scheme: "https", port: nil} = uri), do: %{uri | port: 443}
1940
defp normalize_redirect_uri(%URI{} = uri), do: uri
1941
1942
# https://www.rfc-editor.org/rfc/rfc9110#name-301-moved-permanently and 302:
0 commit comments