From 7803f863b4c364fa756ba93a86019ae41f789c9f Mon Sep 17 00:00:00 2001 From: markt Date: Wed, 18 Oct 2006 02:26:48 +0000 Subject: [PATCH] Port fix bug 40771. Correct doRead method so Filters and Valves can read POST data. patch provided by Michael Dufel. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465126 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/coyote/http11/filters/SavedRequestInputFilter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/org/apache/coyote/http11/filters/SavedRequestInputFilter.java b/java/org/apache/coyote/http11/filters/SavedRequestInputFilter.java index 2fd2f6533..3b1517d46 100644 --- a/java/org/apache/coyote/http11/filters/SavedRequestInputFilter.java +++ b/java/org/apache/coyote/http11/filters/SavedRequestInputFilter.java @@ -55,6 +55,9 @@ public class SavedRequestInputFilter implements InputFilter { writeLength = input.getLength(); } + if(input.getOffset()>= input.getEnd()) + return -1; + input.substract(chunk.getBuffer(), 0, writeLength); chunk.setOffset(0); chunk.setEnd(writeLength); -- 2.11.0