今天遇到怪问题, 调试了半天
原来nginx对http的header中的下划线不支持
需要单独配置的
不过看标准的http header里面都用的连字符, 不用下划线. 我们还是避免吧:
Accept、Accept-Charset、Accept-Encoding、Accept-Language、Authorization、From、Host、If-Modified-Since、If-Match、If-None-Match、If-Range、If-Range、If-Unmodified-Since、Max-Forwards、Proxy-Authorization、Range、Referer、User-Agent
原来nginx对http的header中的下划线不支持
需要单独配置的
不过看标准的http header里面都用的连字符, 不用下划线. 我们还是避免吧:
Accept、Accept-Charset、Accept-Encoding、Accept-Language、Authorization、From、Host、If-Modified-Since、If-Match、If-None-Match、If-Range、If-Range、If-Unmodified-Since、Max-Forwards、Proxy-Authorization、Range、Referer、User-Agent