From 07309c877c40316ba2538f232770e8d987672ffb Mon Sep 17 00:00:00 2001 From: tjp Date: Wed, 3 Jan 2024 20:14:55 -0700 Subject: http client bugfix - used wrong type cast --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 566894a..7e792b7 100644 --- a/client.go +++ b/client.go @@ -117,7 +117,7 @@ func getRedirectLocation(proto string, meta any) string { case "gemini", "spartan": return meta.(string) case "http", "https": - return meta.(*http.Request).Header.Get("Location") + return meta.(*http.Response).Header.Get("Location") } return "" } -- cgit v1.2.3