Skip to content

Commit 610d87f

Browse files
authored
Merge pull request #255 from headius/coderange_cat_for_9.3
Coderange cat for 9.3
2 parents 45d6a94 + 5d81b71 commit 610d87f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/jruby/rack/RackInput.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.jruby.runtime.ThreadContext;
2828
import org.jruby.runtime.builtin.IRubyObject;
2929
import org.jruby.util.ByteList;
30+
import org.jruby.util.StringSupport;
3031

3132
/**
3233
* Native (Java) implementation of a Rack input.
@@ -147,7 +148,7 @@ public IRubyObject read(ThreadContext context, IRubyObject[] args) {
147148
if (bytes != null) {
148149
if (string != null) {
149150
string.clear();
150-
string.cat(bytes);
151+
string.cat19(new ByteList(bytes, false), StringSupport.CR_UNKNOWN);
151152
return string;
152153
}
153154
return getRuntime().newString(new ByteList(bytes));

0 commit comments

Comments
 (0)