SPDY: fixed session status (internal error misdocumented)

This commit is contained in:
Jeff Pinner 2012-11-16 16:19:56 -08:00 committed by Norman Maurer
parent a0da613e86
commit 97d07253e2

View File

@ -34,10 +34,10 @@ public class SpdySessionStatus implements Comparable<SpdySessionStatus> {
new SpdySessionStatus(1, "PROTOCOL_ERROR"); new SpdySessionStatus(1, "PROTOCOL_ERROR");
/** /**
* 11 Internal Error * 2 Internal Error
*/ */
public static final SpdySessionStatus INTERNAL_ERROR = public static final SpdySessionStatus INTERNAL_ERROR =
new SpdySessionStatus(11, "INTERNAL_ERROR"); new SpdySessionStatus(2, "INTERNAL_ERROR");
/** /**
* Returns the {@link SpdySessionStatus} represented by the specified code. * Returns the {@link SpdySessionStatus} represented by the specified code.
@ -50,7 +50,7 @@ public class SpdySessionStatus implements Comparable<SpdySessionStatus> {
return OK; return OK;
case 1: case 1:
return PROTOCOL_ERROR; return PROTOCOL_ERROR;
case 11: case 2:
return INTERNAL_ERROR; return INTERNAL_ERROR;
} }