内容类型的 litespeed 问题

内容类型的 litespeed 问题

我正在使用 litespeed 运行 magento。

我面临的问题是正在进行 ajax 调用,其标头设置为 x-json,但 lightspeed 正在设置另一个 text/html 内容类型的标头

我已经使用 apache 检查过该页面并且一切运行正常。

我使用 apache 和 litespeed 检查了响应标头,如下所示:

使用 Apache:

HTTP/1.1 200 OK 日期:2012 年 9 月 7 日星期五 05:58:47 GMT 服务器:Apache 到期时间:1981 年 11 月 19 日星期四 08:52:00 GMT 缓存控制:no-store、no-cache、must-revalidate、post-check=0、pre-check=0 Pragma:no-cache Set-Cookie:frontend=164b21c64808a05e806027bdbd4d745d;expires=2012 年 9 月 7 日星期五 06:58:48 GMT;path=/;domain=mydomain.com;httponly 连接:关闭 传输编码:分块 内容类型:application/x-json

使用 litespeed:

HTTP/1.1 200 OK 日期:2012 年 9 月 7 日星期五 06:10:55 GMT 服务器:LiteSpeed 连接:关闭 到期时间:1981 年 11 月 19 日星期四 08:52:00 GMT 缓存控制:no-store、no-cache、must-revalidate、post-check=0、pre-check=0 Pragma:no-cache Set-Cookie:frontend=164b21c64808a05e806027bdbd4d745d;expires=2012 年 9 月 7 日星期五 07:10:55 GMT;path=/;domain=mydomain.com;httponly 内容类型:text/html;charset=UTF-8 内容长度:474 变化:用户代理

我还将 application/json 添加到 litespeed 的 mime.properties 中,重新启动了它,但没有作用。

以下是截图 在此处输入图片描述

相关内容