Skip to content

Commit

Permalink
Smarter body handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed Jun 15, 2018
1 parent ce70db5 commit b9bc9d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/io/sinistral/proteus/server/ServerRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import org.xnio.channels.StreamSourceChannel;

import io.sinistral.proteus.server.predicates.ServerPredicates;
import io.undertow.attribute.BytesSentAttribute;
import io.undertow.attribute.ExchangeAttributes;
import io.undertow.connector.PooledByteBuffer;
import io.undertow.security.api.SecurityContext;
import io.undertow.server.HttpServerExchange;
Expand Down Expand Up @@ -80,7 +82,7 @@ else if ( ServerPredicates.MULTIPART_PREDICATE.resolve(exchange) )
{
this.parseMultipartForm();
}
else if ( ServerPredicates.STRING_BODY_PREDICATE.resolve(exchange) )
else if ( exchange.getRequestContentLength() > 0 )
{
this.extractBytes();
}
Expand Down

0 comments on commit b9bc9d9

Please sign in to comment.