Firefox等待响应

时间:2013-01-24 14:26:08

标签: python firefox webserver timeout

我已经设置了简单的python脚本,用hello响应:

def main(environ, start_response):
    start_response('200 OK', [
        ('Content-type', 'text/plain')

        ])

    return 'hello'

Chrome中的一切正常,我可以每秒刷新页面 但是在Firefox中我收到“待定”状态,并且最终在很长一段时间后Firefox显示响应消息。

这里有什么问题?我尝试使用Content-Length但它没有帮助

以下是回复:

不,在不同的机器上使用两个不同的Firefox进行测试。

Firefox:

  

Status=OK - 200
  Server=nginx
  Date=Thu, 24 Jan 2013 14:28:31 GMT
  Content-Type=text/plain
  Transfer-Encoding=chunked
  Connection=keep-alive
  Content-Encoding=gzip

铬:

  

HTTP / 1.1 200 OK
  服务器:nginx
  日期:2013年1月24日星期四20:24:06 GMT
  内容类型:text / plain
  转移编码:分块
  连接:保持活力
  内容编码:gzip

0 个答案:

没有答案