summaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2024-01-03 20:14:55 -0700
committertjp <tjp@ctrl-c.club>2024-01-03 20:14:55 -0700
commit07309c877c40316ba2538f232770e8d987672ffb (patch)
tree94390c706453cc1126cf6c84582fa2f9e5e7cda8 /client.go
parentc42c521c74da84a46609b8afb5adee2c623dbacd (diff)
http client bugfix - used wrong type cast
Diffstat (limited to 'client.go')
-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 ""
}