diff --git a/src/main/java/org/jruby/rack/RackInput.java b/src/main/java/org/jruby/rack/RackInput.java index 06675a23..3aeb9fd0 100644 --- a/src/main/java/org/jruby/rack/RackInput.java +++ b/src/main/java/org/jruby/rack/RackInput.java @@ -27,6 +27,7 @@ import org.jruby.runtime.ThreadContext; import org.jruby.runtime.builtin.IRubyObject; import org.jruby.util.ByteList; +import org.jruby.util.StringSupport; /** * Native (Java) implementation of a Rack input. @@ -147,7 +148,7 @@ public IRubyObject read(ThreadContext context, IRubyObject[] args) { if (bytes != null) { if (string != null) { string.clear(); - string.cat(bytes); + string.cat19(new ByteList(bytes, false), StringSupport.CR_UNKNOWN); return string; } return getRuntime().newString(new ByteList(bytes));