Skip to content

Incompatible with Ruby >= 2.6 with recent Webrick version #10

@nbulaj

Description

@nbulaj

Hi! There is an issue with Ruby >= 2.6 with a recent Webrick version. Webrick public API was changed and now it requires more arguments.

Check the do_PUT / do_DELETE / do_PATCH / etc methods that calls perform_proxy_request(req, res) under the hood. But in a new Webrick it requires 3..4 arguments to be passed:

https://github.com/ruby/webrick/blob/master/lib/webrick/httpproxy.rb#L298

So we catch wrong number of arguments (given 2, expected 3..4) exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions