changeset 878:5f8a242392da

remove sendDateHeader
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 04 Oct 2016 14:50:32 -0600
parents fef4392f4905
children a3775d0c6985
files src/org/eclipse/jetty/server/AbstractHttpConnection.java src/org/eclipse/jetty/server/Server.java
diffstat 2 files changed, 0 insertions(+), 38 deletions(-) [+]
line wrap: on
line diff
diff -r fef4392f4905 -r 5f8a242392da src/org/eclipse/jetty/server/AbstractHttpConnection.java
--- a/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Tue Oct 04 14:36:51 2016 -0600
+++ b/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Tue Oct 04 14:50:32 2016 -0600
@@ -908,9 +908,6 @@
 					_generator.setPersistent(true);
 					_parser.setPersistent(true);
 				}
-
-				if (_server.getSendDateHeader())
-					_generator.setDate(_request.getTimeStampBuffer());
 				break;
 
 			case HttpVersions.HTTP_1_1_ORDINAL:
@@ -921,8 +918,6 @@
 					_responseFields.add(HttpHeaders.CONNECTION_BUFFER,HttpHeaderValues.CLOSE_BUFFER);
 					_generator.setPersistent(false);
 				}
-				if (_server.getSendDateHeader())
-					_generator.setDate(_request.getTimeStampBuffer());
 
 				if (!_host)
 				{
diff -r fef4392f4905 -r 5f8a242392da src/org/eclipse/jetty/server/Server.java
--- a/src/org/eclipse/jetty/server/Server.java	Tue Oct 04 14:36:51 2016 -0600
+++ b/src/org/eclipse/jetty/server/Server.java	Tue Oct 04 14:50:32 2016 -0600
@@ -64,7 +64,6 @@
 	private final AttributesMap _attributes = new AttributesMap();
 	public final ThreadPoolExecutor threadPool;
 	public final Connector connector;
-	private boolean _sendDateHeader = false; //send Date: header
 	private int _graceful=0;
 	private boolean _stopAtShutdown;
 	private boolean _dumpAfterStart=false;
@@ -301,38 +300,6 @@
 	}
 
 	/* ------------------------------------------------------------ */
-	/**
-	 * @param sendDateHeader
-	 */
-	public void setSendDateHeader(boolean sendDateHeader)
-	{
-		_sendDateHeader = sendDateHeader;
-	}
-
-	/* ------------------------------------------------------------ */
-	public boolean getSendDateHeader()
-	{
-		return _sendDateHeader;
-	}
-
-	/* ------------------------------------------------------------ */
-	/** 
-	 */
-	@Deprecated
-	public int getMaxCookieVersion()
-	{
-		return 1;
-	}
-
-	/* ------------------------------------------------------------ */
-	/** 
-	 */
-	@Deprecated
-	public void setMaxCookieVersion(int maxCookieVersion)
-	{
-	}
-
-	/* ------------------------------------------------------------ */
 	/*
 	 * @see org.eclipse.util.AttributesMap#clearAttributes()
 	 */