mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Fix: cannot edit file in remote server / Modify: separate preview and text-file content controller
This commit is contained in:
@@ -230,7 +230,7 @@ func (h *Handler) handleGetHeadPost(w http.ResponseWriter, r *http.Request, fs *
|
||||
|
||||
ctx := r.Context()
|
||||
|
||||
rs, err := fs.Preview(ctx, reqPath)
|
||||
rs, err := fs.Preview(ctx, reqPath, false)
|
||||
if err != nil {
|
||||
if err == filesystem.ErrObjectNotExist {
|
||||
return http.StatusNotFound, err
|
||||
|
||||
Reference in New Issue
Block a user