aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 22:20:43 +0200
committerRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 22:20:43 +0200
commit8335ffb747348d2f5bbf7986fa9f0fb48c3690b6 (patch)
treeb637a79973fbc4cfbc02c781b48619c4d69b9568 /internal
parente0bb1553d51e8791b3ec1a7915f26cc4cffbcbb4 (diff)
Drop exported constant
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
}