@@ -1714,18 +1714,6 @@ func (a *agent) HandleHTTPDebugManifest(w http.ResponseWriter, r *http.Request)
1714
1714
}
1715
1715
}
1716
1716
1717
- func (a * agent ) HandleHTTPDebugToken (w http.ResponseWriter , r * http.Request ) {
1718
- tok := a .sessionToken .Load ()
1719
- if tok == nil {
1720
- a .logger .Error (r .Context (), "no session token in-memory" )
1721
- w .WriteHeader (http .StatusInternalServerError )
1722
- _ , _ = fmt .Fprintf (w , "no session token in-memory" )
1723
- return
1724
- }
1725
- w .WriteHeader (http .StatusOK )
1726
- _ , _ = fmt .Fprintf (w , * tok )
1727
- }
1728
-
1729
1717
func (a * agent ) HandleHTTPDebugLogs (w http.ResponseWriter , r * http.Request ) {
1730
1718
logPath := filepath .Join (a .logDir , "coder-agent.log" )
1731
1719
f , err := os .Open (logPath )
@@ -1753,7 +1741,6 @@ func (a *agent) HTTPDebug() http.Handler {
1753
1741
r .Get ("/debug/magicsock" , a .HandleHTTPDebugMagicsock )
1754
1742
r .Get ("/debug/magicsock/debug-logging/{state}" , a .HandleHTTPMagicsockDebugLoggingState )
1755
1743
r .Get ("/debug/manifest" , a .HandleHTTPDebugManifest )
1756
- r .Get ("/debug/token" , a .HandleHTTPDebugToken )
1757
1744
r .NotFound (func (w http.ResponseWriter , r * http.Request ) {
1758
1745
w .WriteHeader (http .StatusNotFound )
1759
1746
_ , _ = w .Write ([]byte ("404 not found" ))
0 commit comments