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

Fix a runtime error when running cgi in WEBrick http server. #260

Merged
merged 1 commit into from
Feb 17, 2022

Conversation

HirohitoHigashi
Copy link
Contributor

I use Ruby 27 2.7.4-1 x64 msvcrt and running WEBrick.
When run the CGI program, I got a runtime error in msys2_installation.rb.

error message is here.

C:/Ruby27-x64/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/msys2_installation.rb:76:in `iterate_msys_paths': undefined method `split' for nil:NilClass (NoMethodError)

When running the CGI program, the ENV environment variables were rewritten to the values for CGI.

e.g.

{"GATEWAY_INTERFACE"=>"CGI/1.1", "HTTP_ACCEPT"=>"text/html,application..."}

@larskanis larskanis merged commit 23af4e4 into oneclick:master Feb 17, 2022
@larskanis
Copy link
Member

Makes sense. Thank you!

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

Successfully merging this pull request may close these issues.

2 participants