Merged branch 'jetty-9.2.x' into 'master'.
This commit is contained in:
commit
6263972d1e
|
@ -91,6 +91,7 @@ public class HttpRedirector
|
|||
case 302:
|
||||
case 303:
|
||||
case 307:
|
||||
case 308:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
@ -260,6 +261,7 @@ public class HttpRedirector
|
|||
return redirect(request, response, listener, newURI, HttpMethod.GET.asString());
|
||||
}
|
||||
case 307:
|
||||
case 308:
|
||||
{
|
||||
// Keep same method
|
||||
return redirect(request, response, listener, newURI, request.getMethod());
|
||||
|
|
|
@ -78,6 +78,7 @@ public class UpgradeConnection extends AbstractConnection
|
|||
@Override
|
||||
public void succeeded()
|
||||
{
|
||||
LOG.debug("Upgrade Request Write Success");
|
||||
// Writing the request header is complete.
|
||||
super.succeeded();
|
||||
// start the interest in fill
|
||||
|
@ -87,6 +88,7 @@ public class UpgradeConnection extends AbstractConnection
|
|||
@Override
|
||||
public void failed(Throwable cause)
|
||||
{
|
||||
LOG.warn("Upgrade Request Write Failure", cause);
|
||||
super.failed(cause);
|
||||
// Fail the connect promise when a fundamental exception during connect occurs.
|
||||
connectPromise.failed(cause);
|
||||
|
|
Loading…
Reference in New Issue