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:
parent
3d7f3f89ab
commit
b3eb745180
@ -110,7 +110,7 @@ type
|
|||||||
function ReadIdentity(Size: Integer): Boolean;
|
function ReadIdentity(Size: Integer): Boolean;
|
||||||
function ReadChunked: Boolean;
|
function ReadChunked: Boolean;
|
||||||
procedure ParseCookies;
|
procedure ParseCookies;
|
||||||
function PrepareHeaders: string;
|
function PrepareHeaders: AnsiString;
|
||||||
function InternalDoConnect(needssl: Boolean): Boolean;
|
function InternalDoConnect(needssl: Boolean): Boolean;
|
||||||
function InternalConnect(needssl: Boolean): Boolean;
|
function InternalConnect(needssl: Boolean): Boolean;
|
||||||
public
|
public
|
||||||
@ -328,13 +328,13 @@ begin
|
|||||||
FResultString := '';
|
FResultString := '';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function THTTPSend.PrepareHeaders: string;
|
function THTTPSend.PrepareHeaders: AnsiString;
|
||||||
begin
|
begin
|
||||||
if FProtocol = '0.9' then
|
if FProtocol = '0.9' then
|
||||||
Result := FHeaders[0] + CRLF
|
Result := FHeaders[0] + CRLF
|
||||||
else
|
else
|
||||||
{$IFNDEF MSWINDOWS}
|
{$IFNDEF MSWINDOWS}
|
||||||
Result := AdjustLineBreaks(FHeaders.Text, tlbsCRLF);
|
Result := {$IFDEF UNICODE}AnsiString{$ENDIF}(AdjustLineBreaks(FHeaders.Text, tlbsCRLF)));
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
Result := FHeaders.Text;
|
Result := FHeaders.Text;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
@ -381,7 +381,7 @@ var
|
|||||||
ToClose: Boolean;
|
ToClose: Boolean;
|
||||||
Size: Integer;
|
Size: Integer;
|
||||||
Prot, User, Pass, Host, Port, Path, Para, URI: string;
|
Prot, User, Pass, Host, Port, Path, Para, URI: string;
|
||||||
s, su: string;
|
s, su: AnsiString;
|
||||||
HttpTunnel: Boolean;
|
HttpTunnel: Boolean;
|
||||||
n: integer;
|
n: integer;
|
||||||
pp: string;
|
pp: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user