![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 11 to 13 of 13 total |
![]() |
Mon, Jan 7 2019 11:07 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | << OMG, I must have not quite recovered after a severe flu, only by this I can explain the fact that I did not notice that Trim applies only to the values of the headers, not to their names. >>
I've added a Trim call around the getAllResponseHeaders call, and that should resolve this. For a hot fix: procedure TServerRequest.Complete(Cancelled: Boolean=False; KeepExecuting: Boolean=True); var I: Integer; begin try if KeepExecuting then begin {$IFNDEF DESIGN} FResponseHeaders.Text:=Trim(FHttpRequest.getAllResponseHeaders); <<<<<<<<<<<<<<<< {$ENDIF} { Clean up response header values in case they contain leading spaces } for I:=0 to FResponseHeaders.Count-1 do FResponseHeaders.ValueFromIndex[I]:=Trim(FResponseHeaders.ValueFromIndex[I]); …. Tim Young Elevate Software www.elevatesoft.com |
Mon, Jan 7 2019 11:36 AM | Permanent Link |
ooptimum | Tim Young [Elevate Software] wrote:
<< I've added a Trim call around the getAllResponseHeaders call, and that should resolve this. >> Thank you. I now think about what would happen if any ancient server sends a header wrapped onto the next line, because it's not prohibited although it's not encouraged. |
Thu, Jan 17 2019 11:42 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | << I now think about what would happen if any ancient server sends a header wrapped onto the next line, because it's not prohibited although it's not encouraged. >> I don't think a Trim() would have any effect on multi-line headers, other than the first/last CR/LF. Tim Young Elevate Software www.elevatesoft.com |
« Previous Page | Page 2 of 2 | |
Jump to Page: 1 2 |
This web page was last updated on Tuesday, February 11, 2025 at 11:58 AM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |