Skip to content

Commit

Permalink
fixed TRestServerAuthenticationHttpBasic after 244fe0e
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Dec 5, 2022
1 parent b0a51d1 commit 6ae9b03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/mormot.commit.inc
@@ -1 +1 @@
'2.0.4402'
'2.0.4403'
7 changes: 3 additions & 4 deletions src/rest/mormot.rest.client.pas
Expand Up @@ -2447,14 +2447,13 @@ function TRestClientUri.Uri(const url, method: RawUtf8; Resp: PRawUtf8;

procedure CallInternalUri;
begin
Call.Method := method;
Call.Url := url; // reset to allow proper re-sign
Call.InHead := InHead; // ClientSessionSign() may add a cookie
if fSession.Authentication <> nil then
fSession.Authentication.ClientSessionSign(self, Call);
Call.Method := method;
if fSession.HttpHeader <> '' then
Call.InHead := TrimU(InHead + #13#10 + fSession.HttpHeader)
else
Call.InHead := InHead;
Call.InHead := TrimU(Call.InHead + #13#10 + fSession.HttpHeader);
if SendData <> nil then
Call.InBody := SendData^;
if Assigned(fOnIdle) then
Expand Down

0 comments on commit 6ae9b03

Please sign in to comment.