Browse Source

作者更新

pull/439/head
chulin 9 years ago
parent
commit
e042bef3c0
  1. 5
      weed/server/filer_server_handlers_read.go

5
weed/server/filer_server_handlers_read.go

@ -82,7 +82,12 @@ func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.Reque
lastFileName, lastFileName,
shouldDisplayLoadMore, shouldDisplayLoadMore,
} }
if strings.ToLower(r.Header.Get("Content-Type")) == "application/json" {
writeJsonQuiet(w, r, http.StatusOK, args)
} else {
ui.StatusTpl.Execute(w, args) ui.StatusTpl.Execute(w, args)
}
} }
func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request, isGetMethod bool) { func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request, isGetMethod bool) {

Loading…
Cancel
Save