Skip to content

Commit b5c44cf

Browse files
committed
Unbreak this invocation
Obviously the RubyString needs to be passed in order to call methods on it.
1 parent 805c3d2 commit b5c44cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jruby/rack/ext/Input.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public IRubyObject read(final ThreadContext context, final IRubyObject[] args) {
172172
if ( buffer != null ) {
173173
buffer.clear();
174174
try {
175-
int unused = (int) CONCAT_WITH_CODERANGE.invokeExact(new ByteList(bytes, false), StringSupport.CR_UNKNOWN);
175+
int unused = (int) CONCAT_WITH_CODERANGE.invokeExact(buffer, new ByteList(bytes, false), StringSupport.CR_UNKNOWN);
176176
} catch (Throwable t) {
177177
Helpers.throwException(t);
178178
}

0 commit comments

Comments
 (0)