Fix content-length check to look at the last header received, fixes #5268
Fix content-length check to look at the last header received, fixes #5268

SpacePossum/composer,nicolas-grekas/composer,composer/composer,dzuelke/composer,remicollet/composer,hirak/composer,andrerom/composer,staabm/composer,alcohol/composer,yaman-jain/composer,naderman/composer,pierredup/composer,stof/composer,fabpot/composer,erasys/composer,gencer/composer,curry684/composer,localheinz/composer,till/composer,floverdevel/composer,fabiang/composer,stefangr/composer,milleruk/composer,johnstevenson/composer,vdm-io/composer,MoT3rror/composer,jreinke/composer,davidolrik/composer,JBleijenberg/composer,balbuf/composer,slbmeh/composer,phansys/composer