@@ -417,7 +417,7 @@ Logger getLogger() {
417417 }
418418
419419 private void closeConnection (HttpConnection conn ) {
420- logger .log (Level .TRACE , "closing connection: " + conn .toString ());
420+ logger .log (Level .TRACE , () -> "closing connection: " + conn .toString ());
421421 conn .close ();
422422 allConnections .remove (conn );
423423 }
@@ -533,8 +533,8 @@ private void runPerRequest() throws IOException {
533533 // }
534534 // }
535535 /* checks for unsupported combinations of lengths and encodings */
536- if (headers .containsKey ("Content-Length " )
537- && (headers .containsKey ("Transfer-encoding" ) || headers .get ("Content-Length " ).size () > 1 )) {
536+ if (headers .containsKey ("Content-length " )
537+ && (headers .containsKey ("Transfer-encoding" ) || headers .get ("Content-length " ).size () > 1 )) {
538538 reject (Code .HTTP_BAD_REQUEST , requestLine ,
539539 "Conflicting or malformed headers detected" );
540540 return ;
@@ -554,7 +554,7 @@ private void runPerRequest() throws IOException {
554554 return ;
555555 }
556556 } else {
557- headerValue = headers .getFirst ("Content-Length " );
557+ headerValue = headers .getFirst ("Content-length " );
558558 if (headerValue != null ) {
559559 try {
560560 clen = Long .parseLong (headerValue );
@@ -599,7 +599,7 @@ private void runPerRequest() throws IOException {
599599 rheaders .set ("Connection" , "keep-alive" );
600600 int idleSeconds = (int ) (ServerConfig .getIdleIntervalMillis () / 1000 );
601601 String val = "timeout=" + idleSeconds ;
602- rheaders .set ("Keep-Alive " , val );
602+ rheaders .set ("Keep-alive " , val );
603603 }
604604 }
605605
0 commit comments