Template
fix: make template build, lint and test cleanly out of the box
This commit is contained in:
@@ -40,7 +40,8 @@ func (p *Plugin) InitApi() {
|
||||
next.ServeHTTP(w, r)
|
||||
return
|
||||
}
|
||||
http.Error(w, "Not authorized", http.StatusUnauthorized)
|
||||
w.WriteHeader(http.StatusUnauthorized)
|
||||
p.sendError(w, "Not authorized")
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user