diff src/org/eclipse/jetty/http/HttpParser.java @ 1050:5ef954fad97b

remove JBuffer.sliceFrom()
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 07 Nov 2016 23:49:41 -0700
parents 2b769da7f67d
children 1ab2dd0a7db5
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpParser.java	Mon Nov 07 23:34:48 2016 -0700
+++ b/src/org/eclipse/jetty/http/HttpParser.java	Mon Nov 07 23:49:41 2016 -0700
@@ -90,7 +90,9 @@
 	}
 
 	private JBuffer sliceFromMark() {
-		JBuffer buf = _buffer.sliceFrom(_mark);
+		JBuffer buf = _buffer.duplicate();
+		buf.position(_mark);
+		buf.limit(_buffer.position()-1);
 		_mark = -1;
 		return buf;
 	}