1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-11-05 17:15:05 -05:00

Assign 0 to GOAWAY status_code for SPDY/2

This commit is contained in:
Tatsuhiro Tsujikawa 2012-03-01 22:39:26 +09:00
parent abfc100edb
commit a9d9126229

View File

@ -766,6 +766,8 @@ int spdylay_frame_unpack_goaway(spdylay_goaway *frame,
SPDYLAY_STREAM_ID_MASK; SPDYLAY_STREAM_ID_MASK;
if(frame->hd.version == SPDYLAY_PROTO_SPDY3) { if(frame->hd.version == SPDYLAY_PROTO_SPDY3) {
frame->status_code = spdylay_get_uint32(payload+4); frame->status_code = spdylay_get_uint32(payload+4);
} else {
frame->status_code = 0;
} }
return 0; return 0;
} }