Next D2009 fixes in THTTPSend by SergeyL.

git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@126 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
geby 2010-04-15 07:19:19 +00:00
parent 3d7f3f89ab
commit b3eb745180

View File

@ -110,7 +110,7 @@ type
function ReadIdentity(Size: Integer): Boolean;
function ReadChunked: Boolean;
procedure ParseCookies;
function PrepareHeaders: string;
function PrepareHeaders: AnsiString;
function InternalDoConnect(needssl: Boolean): Boolean;
function InternalConnect(needssl: Boolean): Boolean;
public
@ -328,13 +328,13 @@ begin
FResultString := '';
end;
function THTTPSend.PrepareHeaders: string;
function THTTPSend.PrepareHeaders: AnsiString;
begin
if FProtocol = '0.9' then
Result := FHeaders[0] + CRLF
else
{$IFNDEF MSWINDOWS}
Result := AdjustLineBreaks(FHeaders.Text, tlbsCRLF);
Result := {$IFDEF UNICODE}AnsiString{$ENDIF}(AdjustLineBreaks(FHeaders.Text, tlbsCRLF)));
{$ELSE}
Result := FHeaders.Text;
{$ENDIF}
@ -381,7 +381,7 @@ var
ToClose: Boolean;
Size: Integer;
Prot, User, Pass, Host, Port, Path, Para, URI: string;
s, su: string;
s, su: AnsiString;
HttpTunnel: Boolean;
n: integer;
pp: string;