我正在使用Fiddler来监控对ServiceStack API的调用,我在Content-Length字段中看到了一个逗号。当我部署到特定的Windows服务器时,我才会看到这一点。这是什么意思?
Content-Length: 611,0
整个回复:
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 611,0
Content-Type: text/plain
ETag: 635102562728230000
Server: Microsoft-IIS/8.0
X-Powered-By: ServiceStack/3.955 Win32NT/.NET
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Headers: Content-Type
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Wed, 24 Jul 2013 19:03:34 GMT
raw data removed but it is 611 characters
我不认为Content-Length字段中的逗号是允许的。
答案 0 :(得分:5)
可能是因为有两个 Content-Length标头字段,一个值为“611”,另一个为“0”,某些已将它们合并为一个字段值。