Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nbulaj opened this issue Oct 23, 2019 · 1 comment
Open

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

nbulaj opened this issue Oct 23, 2019 · 1 comment

Comments

@nbulaj
Copy link
Contributor

nbulaj commented Oct 23, 2019

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.

@drbig
Copy link

drbig commented Apr 15, 2020

Indeed. Perhaps easiest is to RVM an older version... not that this approach has been proven sane (looking at some Pythons...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants