fixed endless loop when unexpected 100 response is readed in THTTPSend

git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@88 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
geby
2008-04-26 09:59:13 +00:00
parent 914cb1d0c8
commit c150630586

View File

@ -1,9 +1,9 @@
{==============================================================================| {==============================================================================|
| Project : Ararat Synapse | 003.011.003 | | Project : Ararat Synapse | 003.011.004 |
|==============================================================================| |==============================================================================|
| Content: HTTP client | | Content: HTTP client |
|==============================================================================| |==============================================================================|
| Copyright (c)1999-2007, Lukas Gebauer | | Copyright (c)1999-2008, Lukas Gebauer |
| All rights reserved. | | All rights reserved. |
| | | |
| Redistribution and use in source and binary forms, with or without | | Redistribution and use in source and binary forms, with or without |
@ -539,11 +539,11 @@ begin
if Status100Error = '' then if Status100Error = '' then
begin begin
repeat repeat
s := FSock.RecvString(FTimeout); repeat
if s <> '' then s := FSock.RecvString(FTimeout);
Break; if s <> '' then
until FSock.LastError <> 0; Break;
repeat until FSock.LastError <> 0;
if Pos('HTTP/', UpperCase(s)) = 1 then if Pos('HTTP/', UpperCase(s)) = 1 then
begin begin
FHeaders.Add(s); FHeaders.Add(s);