From 8335ffb747348d2f5bbf7986fa9f0fb48c3690b6 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sun, 2 Apr 2023 22:20:43 +0200 Subject: Drop exported constant --- internal/onionloc/onionloc.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'internal/onionloc') 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 } -- cgit v1.2.3