diff options
author | tjp <tjp@ctrl-c.club> | 2024-01-03 20:14:55 -0700 |
---|---|---|
committer | tjp <tjp@ctrl-c.club> | 2024-01-03 20:14:55 -0700 |
commit | 07309c877c40316ba2538f232770e8d987672ffb (patch) | |
tree | 94390c706453cc1126cf6c84582fa2f9e5e7cda8 /client.go | |
parent | c42c521c74da84a46609b8afb5adee2c623dbacd (diff) |
http client bugfix - used wrong type cast
Diffstat (limited to 'client.go')
-rw-r--r-- | client.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 "" } |