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 |
|==============================================================================|
| Copyright (c)1999-2007, Lukas Gebauer |
| Copyright (c)1999-2008, Lukas Gebauer |
| All rights reserved. |
| |
| Redistribution and use in source and binary forms, with or without |
@ -538,12 +538,12 @@ begin
{ read status }
if Status100Error = '' then
begin
repeat
repeat
s := FSock.RecvString(FTimeout);
if s <> '' then
Break;
until FSock.LastError <> 0;
repeat
if Pos('HTTP/', UpperCase(s)) = 1 then
begin
FHeaders.Add(s);