|
@@ -816,8 +816,6 @@ function TFPCustomHTTPClient.ReadResponseHeaders: integer;
|
|
C : String;
|
|
C : String;
|
|
|
|
|
|
begin
|
|
begin
|
|
- If Assigned(FCookies) then
|
|
|
|
- FCookies.Clear;
|
|
|
|
P:=Pos(':',S);
|
|
P:=Pos(':',S);
|
|
System.Delete(S,1,P);
|
|
System.Delete(S,1,P);
|
|
Repeat
|
|
Repeat
|
|
@@ -837,6 +835,8 @@ Var
|
|
StatusLine,S : String;
|
|
StatusLine,S : String;
|
|
|
|
|
|
begin
|
|
begin
|
|
|
|
+ If Assigned(FCookies) then
|
|
|
|
+ FCookies.Clear;
|
|
if not ReadString(StatusLine) then
|
|
if not ReadString(StatusLine) then
|
|
Exit(0);
|
|
Exit(0);
|
|
Result:=ParseStatusLine(StatusLine);
|
|
Result:=ParseStatusLine(StatusLine);
|