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:
parent
914cb1d0c8
commit
c150630586
14
httpsend.pas
14
httpsend.pas
@ -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 |
|
||||
@ -539,11 +539,11 @@ begin
|
||||
if Status100Error = '' then
|
||||
begin
|
||||
repeat
|
||||
s := FSock.RecvString(FTimeout);
|
||||
if s <> '' then
|
||||
Break;
|
||||
until FSock.LastError <> 0;
|
||||
repeat
|
||||
repeat
|
||||
s := FSock.RecvString(FTimeout);
|
||||
if s <> '' then
|
||||
Break;
|
||||
until FSock.LastError <> 0;
|
||||
if Pos('HTTP/', UpperCase(s)) = 1 then
|
||||
begin
|
||||
FHeaders.Add(s);
|
||||
|
Loading…
Reference in New Issue
Block a user