diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-09-15 20:01:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-15 20:01:36 +0200 |
commit | bec96ab03479c5a799be8581bd32c2777ff23ea7 (patch) | |
tree | 59e39a7a775928387fdc5075620bc60f85478c65 /pkg | |
parent | e7af517914600a97fac4e0341bb701aa178fbbb5 (diff) | |
parent | e73db4b43a6f0237f5f0c03156473c2d8656e1c2 (diff) | |
download | podman-bec96ab03479c5a799be8581bd32c2777ff23ea7.tar.gz podman-bec96ab03479c5a799be8581bd32c2777ff23ea7.tar.bz2 podman-bec96ab03479c5a799be8581bd32c2777ff23ea7.zip |
Merge pull request #7638 from jwhonce/wip/archive
Correct HTTP methods for /containers/{id}/archive
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/api/server/register_archive.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/api/server/register_archive.go b/pkg/api/server/register_archive.go index 5931c2fc9..b2d2543c4 100644 --- a/pkg/api/server/register_archive.go +++ b/pkg/api/server/register_archive.go @@ -9,7 +9,7 @@ import ( ) func (s *APIServer) registerAchiveHandlers(r *mux.Router) error { - // swagger:operation POST /containers/{name}/archive compat putArchive + // swagger:operation PUT /containers/{name}/archive compat putArchive // --- // summary: Put files into a container // description: Put a tar archive of files into a container @@ -84,9 +84,9 @@ func (s *APIServer) registerAchiveHandlers(r *mux.Router) error { // $ref: "#/responses/NoSuchContainer" // 500: // $ref: "#/responses/InternalError" - r.HandleFunc(VersionedPath("/containers/{name}/archive"), s.APIHandler(compat.Archive)).Methods(http.MethodGet, http.MethodPost) + r.HandleFunc(VersionedPath("/containers/{name}/archive"), s.APIHandler(compat.Archive)).Methods(http.MethodGet, http.MethodPut, http.MethodHead) // Added non version path to URI to support docker non versioned paths - r.HandleFunc("/containers/{name}/archive", s.APIHandler(compat.Archive)).Methods(http.MethodGet, http.MethodPost) + r.HandleFunc("/containers/{name}/archive", s.APIHandler(compat.Archive)).Methods(http.MethodGet, http.MethodPut, http.MethodHead) /* Libpod |