mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-10 19:56:00 +02:00
* Update requests must also pass through setuprequest
This commit is contained in:
parent
2ec9850679
commit
b457601e27
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user