module CGI::QueryExtension
def [](key)
If the parameter has multiple values, only the first will be
Get the value for the parameter with a given key.
def [](key) params = @params[key] return '' unless params value = params[0] if @multipart if value return value elsif defined? StringIO StringIO.new("".b) else Tempfile.new("CGI",encoding: Encoding::ASCII_8BIT) end else str = if value then value.dup else "" end str end end