diff options
author | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-04-02 22:20:43 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-04-02 22:20:43 +0200 |
commit | 8335ffb747348d2f5bbf7986fa9f0fb48c3690b6 (patch) | |
tree | b637a79973fbc4cfbc02c781b48619c4d69b9568 | |
parent | e0bb1553d51e8791b3ec1a7915f26cc4cffbcbb4 (diff) |
Drop exported constant
-rw-r--r-- | internal/onionloc/onionloc.go | 6 |
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 } |