Skip to content

Commit a9f0fc2

Browse files
committed
[chore] Remove use of deprecated JRuby visitAll signature
1 parent c066e2a commit a9f0fc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public IRubyObject write_headers(final ThreadContext context, final IRubyObject
365365
private static final ByteList NEW_LINE = new ByteList(new byte[] { '\n' }, false);
366366

367367
protected void writeHeaders(final RackResponseEnvironment response) throws IOException {
368-
this.headers.visitAll(new RubyHash.Visitor() { // headers.each { |key, val| }
368+
this.headers.visitAll(getRuntime().getCurrentContext(), new RubyHash.Visitor() { // headers.each { |key, val| }
369369
@Override
370370
public void visit(final IRubyObject key, final IRubyObject val) {
371371
final String name = key.toString();
@@ -424,7 +424,7 @@ else if ( val instanceof RubyTime ) {
424424

425425
response.addHeader(name, val.toString());
426426
}
427-
});
427+
}, null);
428428
}
429429

430430
@JRubyMethod(name = "write_body")

0 commit comments

Comments
 (0)