Skip to content

Commit

Permalink
Errors should be reported ONCE only.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenalpha committed May 27, 2024
1 parent 2c8c606 commit aaab9d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public Future<Void> write(Buffer data) {
if (!chunked && !headers.contains(HttpHeaders.CONTENT_LENGTH)) {
IllegalStateException ex = new IllegalStateException("You must set the Content-Length header to be the total size of the message "
+ "body BEFORE sending any data if you are not using HTTP chunked encoding.");
logger.error("non-proper HttpServerResponse occured", ex);
logger.debug("non-proper HttpServerResponse occured", ex);
throw ex;
}
ensureBound();
Expand Down

0 comments on commit aaab9d8

Please sign in to comment.