comparison src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 878:5f8a242392da

remove sendDateHeader
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 04 Oct 2016 14:50:32 -0600
parents fef4392f4905
children d850a5e6ff15
comparison
equal deleted inserted replaced
877:fef4392f4905 878:5f8a242392da
906 else if (HttpMethods.CONNECT.equals(_request.getMethod())) 906 else if (HttpMethods.CONNECT.equals(_request.getMethod()))
907 { 907 {
908 _generator.setPersistent(true); 908 _generator.setPersistent(true);
909 _parser.setPersistent(true); 909 _parser.setPersistent(true);
910 } 910 }
911
912 if (_server.getSendDateHeader())
913 _generator.setDate(_request.getTimeStampBuffer());
914 break; 911 break;
915 912
916 case HttpVersions.HTTP_1_1_ORDINAL: 913 case HttpVersions.HTTP_1_1_ORDINAL:
917 _generator.setHead(_head); 914 _generator.setHead(_head);
918 915
919 if (!_parser.isPersistent()) 916 if (!_parser.isPersistent())
920 { 917 {
921 _responseFields.add(HttpHeaders.CONNECTION_BUFFER,HttpHeaderValues.CLOSE_BUFFER); 918 _responseFields.add(HttpHeaders.CONNECTION_BUFFER,HttpHeaderValues.CLOSE_BUFFER);
922 _generator.setPersistent(false); 919 _generator.setPersistent(false);
923 } 920 }
924 if (_server.getSendDateHeader())
925 _generator.setDate(_request.getTimeStampBuffer());
926 921
927 if (!_host) 922 if (!_host)
928 { 923 {
929 LOG.debug("!host {}",this); 924 LOG.debug("!host {}",this);
930 _generator.setResponse(HttpStatus.BAD_REQUEST_400, null); 925 _generator.setResponse(HttpStatus.BAD_REQUEST_400, null);