mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 07:54:53 +08:00
Issue 6: upload file without id specified
This commit is contained in:
@@ -210,6 +210,11 @@ func writeJsonQuiet(w http.ResponseWriter, r *http.Request, obj interface{}) {
|
||||
log.Printf("error writing JSON %s: %s", obj, err)
|
||||
}
|
||||
}
|
||||
func writeJsonError(w http.ResponseWriter, r *http.Request, err error) {
|
||||
m := make(map[string]interface{})
|
||||
m["error"] = err.Error()
|
||||
writeJsonQuiet(w, r, m)
|
||||
}
|
||||
|
||||
func debug(params ...interface{}) {
|
||||
if *IsDebug {
|
||||
|
Reference in New Issue
Block a user