lib/protocol/http2/reset_stream_frame.rb in protocol-http2-0.7.0 vs lib/protocol/http2/reset_stream_frame.rb in protocol-http2-0.7.1
- old
+ new
@@ -46,10 +46,10 @@
class ResetStreamFrame < Frame
TYPE = 0x3
FORMAT = "N".freeze
def unpack
- @payload.unpack(FORMAT).first
+ @payload.unpack1(FORMAT)
end
def pack(error_code = NO_ERROR)
@payload = [error_code].pack(FORMAT)
@length = @payload.bytesize