aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorXe <me@christine.website>2022-09-02 17:36:16 +0000
committerXe <me@christine.website>2022-09-02 17:36:16 +0000
commite6329f22d52770cc09e5268183630045e2b038d9 (patch)
tree98226898affd326c818e798a81d5fd3bb5be7f75 /internal
parent8214faa30c03d1d127338e4a5106ce9878a66c4c (diff)
downloadx-e6329f22d52770cc09e5268183630045e2b038d9.tar.xz
x-e6329f22d52770cc09e5268183630045e2b038d9.zip
xedn
Signed-off-by: Xe <me@christine.website>
Diffstat (limited to 'internal')
-rw-r--r--internal/internal.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/internal/internal.go b/internal/internal.go
index e63f6f7..173f207 100644
--- a/internal/internal.go
+++ b/internal/internal.go
@@ -16,10 +16,9 @@ import (
"within.website/ln/opname"
"within.website/x/internal/flagenv"
"within.website/x/internal/manpage"
- "within.website/x/web/useragent"
// Debug routes
- "net/http"
+ _ "expvar"
_ "net/http/pprof"
// Older projects use .env files, shim in compatibility
@@ -82,10 +81,6 @@ func HandleStartup() {
}
}
-func init() {
- http.DefaultTransport = useragent.Transport("within.website-x", "https://within.website/.x.botinfo", http.DefaultTransport)
-}
-
func HandleCompletion(args complete.Predictor, subcommands complete.Commands) {
cmd := complete.Command{
Flags: map[string]complete.Predictor{},