Skip to content

Commit 36facc8

Browse files
author
licong
committed
fix request log
1 parent 1d7a4d9 commit 36facc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: fs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -830,12 +830,12 @@ func (f *fileHandler) ServeHTTP(w ResponseWriter, r *Request) {
830830
upath = "/" + upath
831831
r.URL.Path = upath
832832
}
833-
log.Printf("request method %s\n", r.Method)
834833
if r.Method == "POST" {
835834
uploadFile(w, r, f.root, path.Clean(upath))
836835
return
837836
}
838837
serveFile(w, r, f.root, path.Clean(upath), true)
838+
log.Printf("%s %s\n", r.Method, upath)
839839
}
840840

841841
// upload file

0 commit comments

Comments
 (0)