【发布时间】:2011-03-19 14:15:43
【问题描述】:
我想让 Rack 提供具有特定内容类型的特定文件。这是一个 .htc 文件,它需要作为 text/x-component 提供,以便 IE 能够识别它。在apache中我会这样做
AddType text/x-component .htc
如何使用 Rack 实现这一点?目前该文件由 Rack::Static 提供,但我没有找到设置内容类型的选项。
【问题讨论】:
标签: ruby internet-explorer rack file-type html-components