~bigbes/core-go

8d15b7e1567f15ac847c9542f4d3d59a1bc5090c — Drew DeVault 5 years ago 7ccaeb9
auth: authenticate all requests under /query
1 files changed, 1 insertions(+), 1 deletions(-)

M auth/middleware.go
M auth/middleware.go => auth/middleware.go +1 -1
@@ 686,7 686,7 @@ func Middleware(conf ini.File, apiconf string) func(http.Handler) http.Handler {

	return func(next http.Handler) http.Handler {
		return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
			if r.URL.Path != "/query" {
			if !strings.HasPrefix(r.URL.Path, "/query") {
				next.ServeHTTP(w, r)
				return
			}