Browse Source

* Update requests must also pass through setuprequest

michael 5 years ago
parent
commit
b457601e27
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/fcl-db/restconnection.pas

+ 1 - 0
packages/fcl-db/restconnection.pas

@@ -273,6 +273,7 @@ begin
     end;
     end;
     R.FXHR.open(Method,URL);
     R.FXHR.open(Method,URL);
     R.FXHR.setRequestHeader('content-type','application/json');
     R.FXHR.setRequestHeader('content-type','application/json');
+    Connection.SetupRequest(R.FXHR); 
     if R.Status in [usInserted,usModified] then
     if R.Status in [usInserted,usModified] then
       R.FXHR.Send(TJSJSON.Stringify(R.Data))
       R.FXHR.Send(TJSJSON.Stringify(R.Data))
     else
     else