谷歌浏览器取消4xx客户端错误响应

时间:2012-03-28 22:16:12

标签: json flex google-chrome actionscript ruby-on-rails-3.1

使用谷歌浏览器我正在打开Flex4.5客户端,它使得GET Http请求到Rails后端,从而呈现json响应。

如果响应为4xx客户端错误,则Chrome开发者工具网络标签会将请求显示为已取消,我无法通过Flex中的错误内容访问响应错误消息。

仅在Chrome上发生这种情况。它适用于FF和IE,或者如果我在chrome浏览器中执行查询。

以下是从Chrome开发者工具

复制的请求和响应标头

感谢您的帮助

GET  (canceled)  application/json   Other

请求标题

GET url HTTP/1.1
Host: localhost:3000
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.83 Safari/535.11
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

响应标题

HTTP / 1.1 404 Not Found

Content-Type: application/json; charset=utf-8
X-Ua-Compatible: IE=Edge
Cache-Control: no-cache
X-Runtime: 0.500000
Content-Length: 30
Server: WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
Date: Wed, 28 Mar 2012 21:53:40 GMT
Connection: Keep-Alive

0 个答案:

没有答案