[ruby-core:94599] [Ruby master Feature#15170] Allow WEBrick::HTTPServlet::initialize to accept an array in server[:CGIInterpreter]

From: merch-redmine@...
Date: 2019-08-27 04:45:27 UTC
List: ruby-core #94599
Issue #15170 has been updated by jeremyevans0 (Jeremy Evans).

Backport deleted (2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN)
Tracker changed from Bug to Feature

I agree that this is a feature request and not a bug report.  I think this is a useful feature, and have submitted a pull request to implement it: https://github.com/ruby/webrick/pull/25

----------------------------------------
Feature #15170: Allow WEBrick::HTTPServlet::initialize to accept an array in server[:CGIInterpreter]
https://bugs.ruby-lang.org/issues/15170#change-81076

* Author: remi.lapeyre (R駑i Lapeyre)
* Status: Assigned
* Priority: Normal
* Assignee: normalperson (Eric Wong)
* Target version: 
----------------------------------------
There is currently no nice way to give WEBrick::HTTPServlet a command with arguments as an array. This force scripts to escape the paths to the given command.

One way to let people specify either a string or an array of strings would be to set `cgicmd` as a string or an array based on the type of `server[:CGIInterpreter]`. This should be a backward compatible change if I understand the code correctly.

I never wrote Ruby but could try to submit a pull request if you think this change could be a good idea.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next