Merge pull request #1933 from allencloud/compatile-api-response-status-code

fix two swarm apis' response status code
This commit is contained in:
Dongluo Chen 2016-03-15 13:36:44 -07:00
commit e0b5e6f5fa
1 changed files with 2 additions and 0 deletions

View File

@ -590,6 +590,7 @@ func postNetworksCreate(c *context, w http.ResponseWriter, r *http.Request) {
}
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusCreated)
json.NewEncoder(w).Encode(response)
}
@ -609,6 +610,7 @@ func postVolumesCreate(c *context, w http.ResponseWriter, r *http.Request) {
}
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusCreated)
json.NewEncoder(w).Encode(volume)
}