diff options
author | Jason T. Greene <jason.greene@redhat.com> | 2022-07-28 21:55:16 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-08-10 16:46:05 -0400 |
commit | 8b9e5fb08591a9477d0173344a8624623b958d86 (patch) | |
tree | 61deddb1f5a7628a9ec4f149dd8f09607e2d8fb2 /pkg/api/server/register_events.go | |
parent | 7efd81cb8dec7a2a173d3abb904d6be05476980a (diff) | |
download | podman-8b9e5fb08591a9477d0173344a8624623b958d86.tar.gz podman-8b9e5fb08591a9477d0173344a8624623b958d86.tar.bz2 podman-8b9e5fb08591a9477d0173344a8624623b958d86.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_events.go')
-rw-r--r-- | pkg/api/server/register_events.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/server/register_events.go b/pkg/api/server/register_events.go index 76f9ec619..3442b3eab 100644 --- a/pkg/api/server/register_events.go +++ b/pkg/api/server/register_events.go @@ -34,9 +34,9 @@ func (s *APIServer) registerEventsHandlers(r *mux.Router) error { // description: returns a string of json data describing an event // 500: // "$ref": "#/responses/internalError" - r.Handle(VersionedPath("/events"), s.APIHandler(compat.GetEvents)).Methods(http.MethodGet) + r.Handle(VersionedPath("/events"), s.StreamBufferedAPIHandler(compat.GetEvents)).Methods(http.MethodGet) // Added non version path to URI to support docker non versioned paths - r.Handle("/events", s.APIHandler(compat.GetEvents)).Methods(http.MethodGet) + r.Handle("/events", s.StreamBufferedAPIHandler(compat.GetEvents)).Methods(http.MethodGet) // swagger:operation GET /libpod/events system SystemEventsLibpod // --- // tags: |