lib/bindata/base.rb in bindata-1.8.1 vs lib/bindata/base.rb in bindata-1.8.2

- old
+ new

@@ -280,10 +280,10 @@ end end def binary_string(str) if str.respond_to?(:force_encoding) - str.dup.force_encoding(Encoding::BINARY) + str.to_s.dup.force_encoding(Encoding::BINARY) else str.dup end end end