summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.go2
1 files changed, 1 insertions, 1 deletions
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 ""
}