Merged branch 'jetty-9.4.x' into 'master'.
This commit is contained in:
commit
c26373783b
|
@ -24,6 +24,7 @@ import org.eclipse.jetty.client.api.Request;
|
||||||
import org.eclipse.jetty.client.api.Response;
|
import org.eclipse.jetty.client.api.Response;
|
||||||
import org.eclipse.jetty.client.api.Result;
|
import org.eclipse.jetty.client.api.Result;
|
||||||
import org.eclipse.jetty.client.util.BufferingResponseListener;
|
import org.eclipse.jetty.client.util.BufferingResponseListener;
|
||||||
|
import org.eclipse.jetty.http.HttpStatus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>A protocol handler that handles the 100 response code.</p>
|
* <p>A protocol handler that handles the 100 response code.</p>
|
||||||
|
@ -49,8 +50,12 @@ public class ContinueProtocolHandler implements ProtocolHandler
|
||||||
@Override
|
@Override
|
||||||
public boolean accept(Request request, Response response)
|
public boolean accept(Request request, Response response)
|
||||||
{
|
{
|
||||||
HttpConversation conversation = ((HttpRequest)request).getConversation();
|
if (response.getStatus() == HttpStatus.CONTINUE_100)
|
||||||
return conversation.getAttribute(ATTRIBUTE) == null;
|
{
|
||||||
|
HttpConversation conversation = ((HttpRequest)request).getConversation();
|
||||||
|
return conversation.getAttribute(ATTRIBUTE) == null;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue