Merged branch 'jetty-9.2.x' into 'master'.

This commit is contained in:
Simone Bordet 2015-03-31 13:58:41 +02:00
commit 6263972d1e
2 changed files with 4 additions and 0 deletions

View File

@ -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());

View File

@ -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);