Sfoglia il codice sorgente

* Remove chunked from headers. Fixes issue #40323

Michaël Van Canneyt 1 mese fa
parent
commit
21d7fa4e3f
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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;