Skip to content

Commit e13434c

Browse files
Added mtPatch
1 parent de90909 commit e13434c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

boss-lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"installedModules": {
55
"github.com/hashload/horse": {
66
"name": "horse",
7-
"version": "2.0.8",
8-
"hash": "f0d9be7d8b5059a6e99397562d39306c",
7+
"version": "2.0.13",
8+
"hash": "32daa5a81f115ecc285cbbbbdbcddcea",
99
"artifacts": {},
1010
"failed": false,
1111
"changed": false

samples/delphi/Samples.dproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<DCC_K>false</DCC_K>
5050
<DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;$(DCC_Namespace)</DCC_Namespace>
5151
<SanitizedProjectName>Samples</SanitizedProjectName>
52-
<DCC_UnitSearchPath>modules\.dcp;modules\.dcu;modules;modules\horse\src;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
52+
<DCC_UnitSearchPath>$(DCC_UnitSearchPath);modules\.dcp;modules\.dcu;modules;modules\horse\src</DCC_UnitSearchPath>
5353
</PropertyGroup>
5454
<PropertyGroup Condition="'$(Base_Win32)'!=''">
5555
<DCC_UsePackage>DBXSqliteDriver;IndyIPCommon;RESTComponents;bindcompdbx;DBXInterBaseDriver;vcl;IndyIPServer;vclactnband;vclFireDAC;IndySystem;tethering;svnui;dsnapcon;FireDACADSDriver;FireDACMSAccDriver;fmxFireDAC;vclimg;FireDAC;vcltouch;vcldb;bindcompfmx;svn;FireDACSqliteDriver;FireDACPgDriver;inetdb;soaprtl;DbxCommonDriver;fmx;FireDACIBDriver;fmxdae;xmlrtl;soapmidas;fmxobj;vclwinx;rtl;DbxClientDriver;CustomIPTransport;vcldsnap;dbexpress;IndyCore;vclx;bindcomp;appanalytics;dsnap;FireDACCommon;IndyIPClient;bindcompvcl;RESTBackendComponents;VCLRESTComponents;soapserver;dbxcds;VclSmp;adortl;vclie;bindengine;DBXMySQLDriver;CloudService;dsnapxml;FireDACMySQLDriver;dbrtl;IndyProtocols;inetdbxpress;FireDACCommonODBC;FireDACCommonDriver;inet;fmxase;$(DCC_UsePackage)</DCC_UsePackage>

samples/delphi/boss-lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"installedModules": {
55
"github.com/hashload/horse": {
66
"name": "horse",
7-
"version": "2.0.8",
8-
"hash": "f0d9be7d8b5059a6e99397562d39306c",
7+
"version": "2.0.13",
8+
"hash": "985da2054d3c705bc211797c653e47ba",
99
"artifacts": {},
1010
"failed": false,
1111
"changed": false

samples/lazarus/boss-lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"installedModules": {
55
"github.com/hashload/horse": {
66
"name": "horse",
7-
"version": "2.0.8",
8-
"hash": "f0d9be7d8b5059a6e99397562d39306c",
7+
"version": "2.0.13",
8+
"hash": "985da2054d3c705bc211797c653e47ba",
99
"artifacts": {},
1010
"failed": false,
1111
"changed": false

src/Horse.Jhonson.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ procedure Middleware(Req: THorseRequest; Res: THorseResponse; Next: {$IF DEFINED
4040
LJSON: {$IF DEFINED(FPC)}TJsonData{$ELSE}TJSONValue{$ENDIF};
4141
begin
4242
if ({$IF DEFINED(FPC)} StringCommandToMethodType(Req.RawWebRequest.Method)
43-
{$ELSE} Req.RawWebRequest.MethodType{$ENDIF} in [mtPost, mtPut]) and (Req.RawWebRequest.ContentType = 'application/json') then
43+
{$ELSE} Req.RawWebRequest.MethodType{$ENDIF} in [mtPost, mtPut, mtPatch]) and (Req.RawWebRequest.ContentType = 'application/json') then
4444
begin
4545
LJSON := {$IF DEFINED(FPC)} GetJSON(Req.Body) {$ELSE}TJSONObject.ParseJSONValue(Req.Body){$ENDIF};
4646
Req.Body(LJSON);

0 commit comments

Comments
 (0)