Mercurial Hosting > luan
diff src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 1022:3718afd99988
HttpHeaders uses StringCache
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 01 Nov 2016 01:04:46 -0600 |
parents | e350c11242be |
children | 27f3dc761452 |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/AbstractHttpConnection.java Mon Oct 31 22:49:25 2016 -0600 +++ b/src/org/eclipse/jetty/server/AbstractHttpConnection.java Tue Nov 01 01:04:46 2016 -0600 @@ -577,7 +577,7 @@ _generator.setHead(_head); if (_parser.isPersistent()) { - _responseFields.add(HttpHeaders.CONNECTION_BUFFER, HttpHeaderValues.KEEP_ALIVE); + _responseFields.add(HttpHeaders.CONNECTION, HttpHeaderValues.KEEP_ALIVE); _generator.setPersistent(true); } else if (HttpMethods.CONNECT.equals(_request.getMethod())) @@ -592,7 +592,7 @@ if (!_parser.isPersistent()) { - _responseFields.add(HttpHeaders.CONNECTION_BUFFER,HttpHeaderValues.CLOSE); + _responseFields.add(HttpHeaders.CONNECTION,HttpHeaderValues.CLOSE); _generator.setPersistent(false); } @@ -600,7 +600,7 @@ { LOG.debug("!host {}",this); _generator.setResponse(HttpStatus.BAD_REQUEST_400, null); - _responseFields.put(HttpHeaders.CONNECTION_BUFFER, HttpHeaderValues.CLOSE); + _responseFields.put(HttpHeaders.CONNECTION, HttpHeaderValues.CLOSE); _generator.completeHeader(_responseFields, true); _generator.complete(); return; @@ -610,7 +610,7 @@ { LOG.debug("!expectation {}",this); _generator.setResponse(HttpStatus.EXPECTATION_FAILED_417, null); - _responseFields.put(HttpHeaders.CONNECTION_BUFFER, HttpHeaderValues.CLOSE); + _responseFields.put(HttpHeaders.CONNECTION, HttpHeaderValues.CLOSE); _generator.completeHeader(_responseFields, true); _generator.complete(); return;