|
|
@ -75,7 +75,7 @@ func (fs *FilerServer) filerHandler(w http.ResponseWriter, r *http.Request) { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
w.Header().Set("Server", "SeaweedFS Filer "+util.VERSION) |
|
|
|
w.Header().Set("Server", "SeaweedFS "+util.VERSION) |
|
|
|
|
|
|
|
switch r.Method { |
|
|
|
case http.MethodGet, http.MethodHead: |
|
|
@ -163,7 +163,7 @@ func (fs *FilerServer) readonlyFilerHandler(w http.ResponseWriter, r *http.Reque |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
w.Header().Set("Server", "SeaweedFS Filer "+util.VERSION) |
|
|
|
w.Header().Set("Server", "SeaweedFS "+util.VERSION) |
|
|
|
|
|
|
|
switch r.Method { |
|
|
|
case http.MethodGet, http.MethodHead: |
|
|
@ -224,7 +224,7 @@ func (fs *FilerServer) maybeCheckJwtAuthorization(r *http.Request, isWrite bool) |
|
|
|
} |
|
|
|
|
|
|
|
func (fs *FilerServer) filerHealthzHandler(w http.ResponseWriter, r *http.Request) { |
|
|
|
w.Header().Set("Server", "SeaweedFS Filer "+util.VERSION) |
|
|
|
w.Header().Set("Server", "SeaweedFS "+util.VERSION) |
|
|
|
if _, err := fs.filer.Store.FindEntry(context.Background(), filer.TopicsDir); err != nil && err != filer_pb.ErrNotFound { |
|
|
|
glog.Warningf("filerHealthzHandler FindEntry: %+v", err) |
|
|
|
w.WriteHeader(http.StatusServiceUnavailable) |
|
|
|