Changes between Initial Version and Version 1 of Ticket #1442, comment 2


Ignore:
Timestamp:
12/05/17 01:57:53 (3 years ago)
Author:
wangfakang@…

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1442, comment 2

    initial v1  
    88
    99So, I don't think that in this scenario should be checking the validity of content-length. what do you think?
     10
     11{{{
     12$curl  www.baidu.com   -H "Transfer-Encoding: chunked" -H "Content-Length: -1"  -I
     13HTTP/1.1 200 OK
     14Server: bfe/1.0.8.18
     15Date: Tue, 05 Dec 2017 01:53:31 GMT
     16Content-Type: text/html
     17Content-Length: 277
     18Last-Modified: Mon, 13 Jun 2016 02:50:50 GMT
     19Connection: Keep-Alive
     20ETag: "575e1f8a-115"
     21Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
     22Pragma: no-cache
     23Accept-Ranges: bytes
     24}}}
     25{{{
     26$curl nginx.org  -H "Transfer-Encoding: chunked" -H "Content-Length: -1"  -I
     27HTTP/1.1 400 Bad Request
     28Server: nginx/1.13.3
     29Date: Tue, 05 Dec 2017 01:53:58 GMT
     30Content-Type: text/html; charset=utf-8
     31Content-Length: 173
     32Connection: close
     33}}}