Update codec-http/src/main/java/io/netty/handler/codec/http/HttpPostRequestDecoder.java

This commit is contained in:
Frédéric Brégier 2012-04-30 13:06:53 +03:00 committed by Trustin Lee
parent 5d2bf43b59
commit ac39f39f36

View File

@ -26,8 +26,8 @@ import java.util.TreeMap;
import io.netty.buffer.ChannelBuffer; import io.netty.buffer.ChannelBuffer;
import io.netty.buffer.ChannelBuffers; import io.netty.buffer.ChannelBuffers;
import org.jboss.netty.handler.codec.http2.HttpPostBodyUtil.SeekAheadNoBackArray; import io.netty.handler.codec.http.HttpPostBodyUtil.SeekAheadNoBackArray;
import org.jboss.netty.handler.codec.http2.HttpPostBodyUtil.SeekAheadOptimize; import io.netty.handler.codec.http.HttpPostBodyUtil.SeekAheadOptimize;
import io.netty.handler.codec.http.HttpPostBodyUtil.TransferEncodingMechanism; import io.netty.handler.codec.http.HttpPostBodyUtil.TransferEncodingMechanism;
/** /**
@ -883,7 +883,7 @@ public class HttpPostRequestDecoder {
throws ErrorDataDecoderException { throws ErrorDataDecoderException {
// --AaB03x or --AaB03x-- // --AaB03x or --AaB03x--
int readerIndex = undecodedChunk.readerIndex(); int readerIndex = undecodedChunk.readerIndex();
skipControlCharacters(undecodedChunk); skipControlCharacters();
skipOneLine(); skipOneLine();
String newline; String newline;
try { try {
@ -924,7 +924,7 @@ public class HttpPostRequestDecoder {
} }
// read many lines until empty line with newline found! Store all data // read many lines until empty line with newline found! Store all data
while (!skipOneLine()) { while (!skipOneLine()) {
skipControlCharacters(undecodedChunk); skipControlCharacters();
String newline; String newline;
try { try {
newline = readLine(); newline = readLine();