Skip to content

Commit

Permalink
Update uRESTDWDatamodule.pas
Browse files Browse the repository at this point in the history
- Correção de serialização de PATCH parâmetro
  • Loading branch information
ronierys2@hotmail.com committed Mar 29, 2024
1 parent 8a8bee8 commit f1fcbd8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions CORE/Source/Plugins/DMDados/uRESTDWDatamodule.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
unit uRESTDWDatamodule;
unit uRESTDWDatamodule;

{$I ..\..\Includes\uRESTDW.inc}

Expand Down Expand Up @@ -134,18 +134,17 @@ implementation
Try
ctempURI := ParamsURI;
pAux1 := Pos('?', ctempURI);
vIsQuery := pAux1 > 0;
// params com /
If vIsQuery Then
Begin
sAux2 := Copy(ctempURI, pAux1 + 1, Length(ctempURI));
Delete(ctempURI, pAux1, Length(ctempURI));

If Pos('/', ctempURI) > 0 Then
Begin
sAux2 := Copy(ctempURI, pAux1 + 1, Pos('/', ctempURI) -2);
Delete(ctempURI, pAux1, Pos('/', ctempURI));
End
Else
Begin
sAux2 := Copy(ctempURI, pAux1 + 1, Length(ctempURI));
Delete(ctempURI, pAux1, Length(ctempURI));
End;
End
Else
Expand Down

0 comments on commit f1fcbd8

Please sign in to comment.