mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
APIv2: Return StatusCreated
from volume creation
The swagdoc in `register_volumes.go` already correctly notes that a 201 should be returned upon success, so we only need to change the handler to match the spec. Signed-off-by: Matt Brindley <58414429+maybe-sybr@users.noreply.github.com>
This commit is contained in:
@ -73,7 +73,7 @@ func CreateVolume(w http.ResponseWriter, r *http.Request) {
|
||||
UID: config.UID,
|
||||
GID: config.GID,
|
||||
}
|
||||
utils.WriteResponse(w, http.StatusOK, volResponse)
|
||||
utils.WriteResponse(w, http.StatusCreated, volResponse)
|
||||
}
|
||||
|
||||
func InspectVolume(w http.ResponseWriter, r *http.Request) {
|
||||
|
Reference in New Issue
Block a user