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 5 years ago. Updated over 4 years ago.

Status:
Closed
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

Like0
Like0Like0Like0Like0