Hi, На чт, 13.12.2018 г. в 2:58 ч. Christopher Schultz < ch...@christopherschultz.net> написа: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Mark, > > On 12/12/18 18:26, Mark Thomas wrote: > > On 12/12/2018 23:25, ma...@apache.org wrote: > >> Author: markt Date: Wed Dec 12 23:25:39 2018 New Revision: > >> 1848810 > >> > >> URL: http://svn.apache.org/viewvc?rev=1848810&view=rev Log: > >> Ensure that the HEAD response is consistent with the GET response > >> when HttpServlet is relied upon to generate the HEAD response and > >> the GET response uses chunking. > > > > Views on back-porting this? > > Hmm. > > If HEAD is supposed to be GET-without-body... what does the spec > actually say about chunked encoding? Technically, there is no such > thing as a "chunked" HEAD response, so... do we even owe the client a > Content-Length with a HEAD request?
I think we can remove the chunked encoding "The server SHOULD send the same header fields in response to a HEAD request as it would have sent if the request had been a GET, except that the payload header fields (Section 3.3) MAY be omitted." https://tools.ietf.org/html/rfc7231#section-4.3.2 Regards, Violeta > > - -chris > -----BEGIN PGP SIGNATURE----- > Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ > > iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlwRrsoACgkQHPApP6U8 > pFhVxA//RTdh6SxskKqQIZLDt3B/aiOEvYMMj96c6eGhds2/3AqTaCey1XfV/XIr > 4W5kr4lVFBMyDvAZnW2+D5x74E9CN4TGd7Nn4wi27qvYBhvmuR0vuxIa5oJSdIrU > HEkDcZUP1TagnR2x8za/HBVWE8NJ6AUEAusoBgPUnWQaRpe93okV1WcR5W2uuzjp > 2j0aic2NQV1DB0bXIrMypw4+/cDgVFLQK6CIPG8bjTa6DsuJkW5pijs+Bu84ujyT > itgrGdpAhB+8mbb1yAGnBmTGFgOUXNeskDPQIyLV40x0FR/0b6REyvMSm6H/jcpj > rkVvZl25oLaLmKzxp7uhYiIn7sbUoux/3M4w9srOIwBDjjbUNhrmI3BOhLKMlyQL > Uv84+Xu0s4ZkIFXER+792IaHUP0SQYSaPVUYKFOIi7wk3l1p680WThORIuHQUlvt > VO2Wk3wIIfYCLB2koiNS5rJhIQ7mSUPn+kYt3sTWw6Fy7gsSp43EzInigoDxcnBq > z29bQi/fDhtd5sUAX6dw6BD4Q0q/xkNUr517P/v1QwWywxItzodsvRv30DllZCbe > JhSYBYGiJrgUBsBDw2eODKRY194Zwp7VFIbdbNMiF7b5Uo6hgaXmuL8cIgLGhm1h > 0NK4B3pwbL81Ntl6j/5ofg5Yf+6eMEiHK6w5CFW5KvXBEW5+kKw= > =QXjb > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org