aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/onionloc/onionloc.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/onionloc/onionloc.go b/internal/onionloc/onionloc.go
index 63e512a..30cf978 100644
--- a/internal/onionloc/onionloc.go
+++ b/internal/onionloc/onionloc.go
@@ -7,12 +7,8 @@ import (
"golang.org/x/net/html"
)
-const (
- HTTPHeaderName = "Onion-Location"
-)
-
func HTTP(rsp *http.Response) (string, bool) {
- v, ok := rsp.Header[HTTPHeaderName]
+ v, ok := rsp.Header["Onion-Location"]
if !ok {
return "", false
}