changeset 1017:d2c3ff33387c

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 24 Oct 2016 01:56:08 -0600
parents 8c13b9224cff
children 4dc1e1a18661
files src/org/eclipse/jetty/http/HttpParser.java src/org/eclipse/jetty/server/AbstractHttpConnection.java
diffstat 2 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
diff -r 8c13b9224cff -r d2c3ff33387c src/org/eclipse/jetty/http/HttpParser.java
--- a/src/org/eclipse/jetty/http/HttpParser.java	Mon Oct 24 01:38:00 2016 -0600
+++ b/src/org/eclipse/jetty/http/HttpParser.java	Mon Oct 24 01:56:08 2016 -0600
@@ -291,7 +291,7 @@
 						if (ch == HttpTokens.SPACE)
 						{
 							_tok0.update(_buffer.markIndex(), _buffer.getIndex() - 1);
-							_responseStatus=HttpVersions.CACHE.get(_tok0)==null?-1:0;
+							_responseStatus = HttpVersions.CACHE.get(_tok0)==null?-1:0;
 							_state=STATE_SPACE1;
 							continue;
 						}
@@ -967,11 +967,11 @@
 	{
 		// reset state
 		_contentView.setGetIndex(_contentView.putIndex());
-		_state=_persistent?STATE_START:(_endp.isInputShutdown()?STATE_END:STATE_SEEKING_EOF);
-		_contentLength=HttpTokens.UNKNOWN_CONTENT;
-		_contentPosition=0;
-		_length=0;
-		_responseStatus=0;
+		_state = _persistent?STATE_START:(_endp.isInputShutdown()?STATE_END:STATE_SEEKING_EOF);
+		_contentLength = HttpTokens.UNKNOWN_CONTENT;
+		_contentPosition = 0;
+		_length = 0;
+		_responseStatus = 0;
 
 		// Consume LF if CRLF
 		if (_eol == HttpTokens.CARRIAGE_RETURN && _buffer!=null && _buffer.hasContent() && _buffer.peek() == HttpTokens.LINE_FEED)
diff -r 8c13b9224cff -r d2c3ff33387c src/org/eclipse/jetty/server/AbstractHttpConnection.java
--- a/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Mon Oct 24 01:38:00 2016 -0600
+++ b/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Mon Oct 24 01:56:08 2016 -0600
@@ -227,7 +227,6 @@
 	protected void reset()
 	{
 		_parser.reset();
-		_parser.returnBuffers(); // TODO maybe only on unhandle
 		_requestFields.clear();
 		_generator.reset();
 		_generator.returnBuffers();// TODO maybe only on unhandle