Project

General

Profile

Actions

Feature #15170

closed

Allow WEBrick::HTTPServlet::initialize to accept an array in server[:CGIInterpreter]

Added by remi.lapeyre (Rémi Lapeyre) over 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:89191]

Description

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.

Actions

Also available in: Atom PDF