diff --git a/http-poja-apache/src/main/java/io/micronaut/http/poja/apache/ApacheServerlessApplication.java b/http-poja-apache/src/main/java/io/micronaut/http/poja/apache/ApacheServerlessApplication.java index d8bf9e31a..2d84a7338 100644 --- a/http-poja-apache/src/main/java/io/micronaut/http/poja/apache/ApacheServerlessApplication.java +++ b/http-poja-apache/src/main/java/io/micronaut/http/poja/apache/ApacheServerlessApplication.java @@ -97,6 +97,8 @@ protected void handleSingleRequest( response.status(HttpStatus.BAD_REQUEST); response.contentType(MediaType.TEXT_PLAIN_TYPE); response.getOutputStream().write(e.getMessage().getBytes()); + // Reset the buffer + sessionInputBuffer = null; } writeResponse(response.getNativeResponse(), out); }