Synapse HTTP protocol's header management fix (Thanks mcarro)

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4067 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
inoussa 2015-03-25 17:29:31 +00:00
parent cdcc835400
commit 132cc4c0ff

View File

@ -199,7 +199,7 @@ begin
if (i >= 0) then
FConnection.Headers[i] := s
else
FConnection.Headers.Add(s);
FConnection.Headers.Insert(0,s);
end;
procedure THTTPTransport.DoSendAndReceive(ARequest, AResponse : TStream);
@ -229,6 +229,7 @@ begin
end;
AResponse.CopyFrom(FConnection.Document,0);
FConnection.Document.Clear();
FConnection.Headers.Clear();
end;
constructor THTTPTransport.Create();