【问题标题】:Stop .Net from changing Content-Type阻止 .Net 更改 Content-Type
【发布时间】:2010-12-15 15:10:08
【问题描述】:

我正在开发一个移动浏览器访问的 MVC 应用程序。

不幸的是,.Net 倾向于将一些旧手机的内容类型从 text/html 更改为 text/vnd.wap.wml。

我知道我可以创建一个 ActionFilter 来覆盖此行为并强制 content-tpe text/html,或者我可以在 指令中包含 Content-Type。

但是有没有更简单的方法来阻止 .Net 更改内容类型?

【问题讨论】:

    标签: asp.net-mvc content-type


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2012-07-28
    • 2017-07-10
    • 1970-01-01
    • 1970-01-01
    • 2021-01-19
    • 2019-07-20
    • 2018-09-05
    • 2012-07-07
    相关资源
    最近更新 更多