forked from hswaw/hscloud
whoops2
parent
f77e7d31af
commit
bbb5b5fa96
2
mirko.go
2
mirko.go
|
@ -79,7 +79,7 @@ func (m *Mirko) Listen() error {
|
||||||
m.httpMux = http.NewServeMux()
|
m.httpMux = http.NewServeMux()
|
||||||
// Canonical URLs
|
// Canonical URLs
|
||||||
m.httpMux.HandleFunc("/debug/status", func(w http.ResponseWriter, r *http.Request) {
|
m.httpMux.HandleFunc("/debug/status", func(w http.ResponseWriter, r *http.Request) {
|
||||||
any, sensitive := authRequest(r)
|
any, _ := authRequest(r)
|
||||||
if !any {
|
if !any {
|
||||||
http.Error(w, "not allowed", http.StatusUnauthorized)
|
http.Error(w, "not allowed", http.StatusUnauthorized)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue