Permalink
Browse files

Cannot change encoding on frozen String

  • Loading branch information...
1 parent b499a8d commit 35dcee7bb48f820ba270505bb9ecb0634e21a429 @McRipper committed Mar 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rb/lib/thrift/transport/http_client_transport.rb
@@ -36,7 +36,7 @@ def open?; true end
def read(sz); @inbuf.read sz end
def write(buf)
- @outbuf << buf.force_encoding("utf-8")
+ @outbuf << buf.dup.force_encoding("utf-8")
end

0 comments on commit 35dcee7

Please sign in to comment.