aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-10-22 20:24:24 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-10-22 20:24:24 +0900
commitc6e834d8469960a80c8ac6ee1a55256bc988ecd6 (patch)
tree3c5f8f08b9775333fc23fca97fcca6fbd652f5e1 /lib
parent6cdd9768e207928918b1e6450032fdd56dbc0a12 (diff)
downloadplum-c6e834d8469960a80c8ac6ee1a55256bc988ecd6.tar.gz
frame: fix Encoding::CompatibilityError in Frame#assemble
Diffstat (limited to 'lib')
-rw-r--r--lib/plum/frame.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plum/frame.rb b/lib/plum/frame.rb
index ae7a532..887bc8b 100644
--- a/lib/plum/frame.rb
+++ b/lib/plum/frame.rb
@@ -125,7 +125,7 @@ module Plum
bytes.push_uint8(type_value)
bytes.push_uint8(flags_value)
bytes.push_uint32(stream_id & ~(1 << 31)) # first bit is reserved (MUST be 0)
- bytes.push(payload)
+ bytes.push(payload.b)
bytes
end