代码之家  ›  专栏  ›  技术社区  ›  Attila O.

Chrome多重内容长度错误

  •  2
  • Attila O.  · 技术社区  · 14 年前

    如果我直接访问我的页面,我会得到:

    $ wget http://localhost:8010/ --save-headers -O -
    --2010-10-29 18:30:24--  http://localhost:8010/
    Resolving localhost (localhost)... 127.0.0.1
    Connecting to localhost (localhost)|127.0.0.1|:8010... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 950 [text/html]
    Saving to: `STDOUT'
    HTTP/1.1 200 OK
    Server: gunicorn/0.11.1
    Date: Fri, 29 Oct 2010 16:30:24 GMT
    Connection: keep-alive
    Vary: Accept-Language, Cookie, Accept-Encoding
    Content-Length: 950
    Content-Type: text/html; charset=utf-8
    Content-Language: en-us
    

    如果我通过缓存访问它:

    $ wget http://localhost:8000/ --save-headers -O -
    --2010-10-29 18:30:31--  http://localhost:8000/
    Resolving localhost (localhost)... 127.0.0.1
    Connecting to localhost (localhost)|127.0.0.1|:8000... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 950 [text/html]
    Saving to: `STDOUT'
    HTTP/1.1 200 OK
    Server: gunicorn/0.11.1
    Vary: Accept-Language, Cookie, Accept-Encoding
    Content-Type: text/html; charset=utf-8
    Content-Language: en-us
    Content-Length: 950
    Date: Fri, 29 Oct 2010 16:30:31 GMT
    X-Varnish: 818233557
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    

    当我用铬(8.0.552.18(0))打开后者时,我得到这个错误:

    Error 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH): Unknown error.
    

    我只看到三个额外的标题;我应该删除哪一个以使其显示在Chrome中?

    编辑: 我最终摆脱了这个问题,但我不记得是怎么做到的,而且我再也无法访问那个系统了。我要开始赏金,也许有人会告诉我这里发生了什么。

    2 回复  |  直到 14 年前
        1
  •  2
  •   Brandon Horsley    14 年前
        2
  •  -1
  •   Mark    14 年前