Project

General

Profile

Actions

Feature #10666

closed

Allow setting of default MIME type for WEBrick

Added by parkr (Parker M) about 9 years ago. Updated about 3 years ago.

Status:
Rejected
Target version:
-
[ruby-core:67184]

Description

HTTPUtils specifically specifies application/octet-stream as the fallback MIME Type. Other web servers allow you to change the default to, say, text/html or text/plain. I would like to be able to set this to ay MIME Type in the mime_tab list, or to specify a "default" MIME Type in the mime_tab that is used:

mime_tab[suffix1] || mime_tab[suffix2] || mime_tab["default"] || "application/octet-stream"

or

mime_tab[suffix1] || mime_tab[suffix2] || @default_fallback_mime_type

What do you think?

Actions #1

Updated by naruse (Yui NARUSE) about 6 years ago

  • Target version deleted (2.2.0)

Updated by hsbt (Hiroshi SHIBATA) about 3 years ago

  • Status changed from Open to Rejected

WEBrick has been removed from ruby repository.

If anyone interest this, Please file this to https://github.com/ruby/webrick

Actions

Also available in: Atom PDF

Like0
Like0Like0