diff options
author | Jason T. Greene <jason.greene@redhat.com> | 2022-07-28 21:55:16 -0500 |
---|---|---|
committer | Jason T. Greene <jason.greene@redhat.com> | 2022-07-29 00:51:44 -0500 |
commit | 7a909a3e233d9948bdf3973d7894d70c2bba4ae9 (patch) | |
tree | 4e9a2e7efb024c8f9d0bc732b1a384bb7f267849 /pkg/api/server/register_images.go | |
parent | a43cfc1b1adb91ef448bcbb8a4aab65477749567 (diff) | |
download | podman-7a909a3e233d9948bdf3973d7894d70c2bba4ae9.tar.gz podman-7a909a3e233d9948bdf3973d7894d70c2bba4ae9.tar.bz2 podman-7a909a3e233d9948bdf3973d7894d70c2bba4ae9.zip |
Use 8k buffer to help clients w/ broken parsing
Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
Diffstat (limited to 'pkg/api/server/register_images.go')
-rw-r--r-- | pkg/api/server/register_images.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go index 1bfedd77e..d71e0d470 100644 --- a/pkg/api/server/register_images.go +++ b/pkg/api/server/register_images.go @@ -702,9 +702,9 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // $ref: "#/responses/badParamError" // 500: // $ref: "#/responses/internalError" - r.Handle(VersionedPath("/build"), s.APIHandler(compat.BuildImage)).Methods(http.MethodPost) + r.Handle(VersionedPath("/build"), s.StreamBufferedAPIHandler(compat.BuildImage)).Methods(http.MethodPost) // Added non version path to URI to support docker non versioned paths - r.Handle("/build", s.APIHandler(compat.BuildImage)).Methods(http.MethodPost) + r.Handle("/build", s.StreamBufferedAPIHandler(compat.BuildImage)).Methods(http.MethodPost) /* libpod endpoints */ |