summaryrefslogtreecommitdiff
path: root/pkg/api/server/register_images.go
diff options
context:
space:
mode:
authorJason T. Greene <jason.greene@redhat.com>2022-07-28 21:55:16 -0500
committerJason T. Greene <jason.greene@redhat.com>2022-07-29 00:51:44 -0500
commit7a909a3e233d9948bdf3973d7894d70c2bba4ae9 (patch)
tree4e9a2e7efb024c8f9d0bc732b1a384bb7f267849 /pkg/api/server/register_images.go
parenta43cfc1b1adb91ef448bcbb8a4aab65477749567 (diff)
downloadpodman-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.go4
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
*/