mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 16:47:24 +08:00
skip if http.StatusNoContent
This commit is contained in:
@@ -34,6 +34,10 @@ func init() {
|
||||
}
|
||||
|
||||
func writeJson(w http.ResponseWriter, r *http.Request, httpStatus int, obj interface{}) (err error) {
|
||||
if httpStatus == http.StatusNoContent {
|
||||
return
|
||||
}
|
||||
|
||||
var bytes []byte
|
||||
if obj != nil {
|
||||
if r.FormValue("pretty") != "" {
|
||||
|
Reference in New Issue
Block a user