Explorar el Código

* Remove chunked from headers. Fixes issue #40323

Michaël Van Canneyt hace 1 mes
padre
commit
21d7fa4e3f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      packages/fcl-web/src/base/fpwebproxy.pp

+ 2 - 1
packages/fcl-web/src/base/fpwebproxy.pp

@@ -267,7 +267,8 @@ begin
       begin
       V:=Trim(ExtractWord(2,N,[':']));
       {$IFDEF DEBUGPROXY}Writeln('Returning header: ',N);{$ENDIF}
-      AResponse.SetCustomHeader(H,V);
+      if Not SameText(V,'chunked') then
+        AResponse.SetCustomHeader(H,V);
       end;
     end;
   AResponse.Code:=T.ResponseStatusCode;