<div dir="ltr"><div id="gmail-:5a" class="gmail-Ar gmail-Au gmail-Ao"><div id="gmail-:56" class="gmail-Am gmail-Al editable gmail-LW-avf gmail-tS-tW gmail-tS-tY" aria-label="Message Body" role="textbox" aria-multiline="true" tabindex="1" style="direction:ltr;min-height:519px" aria-controls=":20n">Hi,<br><br>I'm using Squid to proxy HTTP requests to another proxy. I can see squid sending the request to the parent and getting a response, but it sends the client that initiated the request a 502 Bad Gateway response.<br><br>On closer inspection it appears the parent proxy is sending an empty transfer-encoding header, and this is causing Squid to send a 502. Is there any way to ignore this? It looks like its enforced in <a href="https://github.com/squid-cache/squid/blob/5139f0f64a4d7bba0d91d631b031c4700e7576b4/src/HttpHeader.cc#L510">HttpHeader.cc#L510</a><div><br></div><div>I'm using Squid 5.6, or more specifically the ubuntu/squid:5.6-22.10_edge docker image.</div><div><br></div><div>I've included the logs below.</div><div><br></div><div>Thanks<div>Matthew</div></div><div><br></div><div>2022/10/24 00:23:59.106| ctx: enter level  0: '<a href="http://nintendo.com/" target="_blank">http://nintendo.com/</a>'<br>2022/10/24 00:23:59.106| 11,3| http.cc(666) processReplyHeader: processReplyHeader: key '19010000000000000C00000000000000'<br>2022/10/24 00:23:59.106| 11,2| http.cc(720) processReplyHeader: HTTP Server conn294 local=<a href="http://172.25.0.3:57802/" target="_blank">172.25.0.3:57802</a> remote=<a href="http://159.203.14.9:1996/" target="_blank">159.203.14.9:1996</a> FIRSTUP_PARENT FD 26 flags=1<br>2022/10/24 00:23:59.106| 11,2| http.cc(721) processReplyHeader: HTTP Server RESPONSE:<br>---------<br>HTTP/1.1 200 OK<br>x-powered-by: Express<br>content-type: text/html; charset=iso-8859-1<br>transfer-encoding:<br>date: Mon, 24 Oct 2022 00:23:57 GMT<br>connection: close<br><br>----------<br>2022/10/24 00:23:59.106| 55,3| HttpHeader.cc(882) getList: empty list header: Transfer-Encoding(Transfer-Encoding[63])<br>2022/10/24 00:23:59.106| 55,2| HttpHeader.cc(559) parse: WARNING: unsupported Transfer-Encoding used by client:<br>2022/10/24 00:23:59.106| ctx: exit level  0<br>2022/10/24 00:23:59.106| 20,3| store.cc(1673) reset: <a href="http://nintendo.com/" target="_blank">http://nintendo.com/</a><br>2022/10/24 00:23:59.107| 17,3| FwdState.cc(492) fail: ERR_INVALID_RESP "Bad Gateway"<br>        <a href="http://nintendo.com/" target="_blank">http://nintendo.com/</a><br>2022/10/24 00:23:59.107| 17,3| FwdState.cc(533) unregister: <a href="http://nintendo.com/" target="_blank">http://nintendo.com/</a>  </div></div></div></div>