Skip to content

Commit 4310766

Browse files
authored
- Fix dispatch of PUT Services in NET Core when the Restpath is duplicate and has path variables. Issue 104881 (#876)
1 parent 2d21345 commit 4310766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/dotnetframework/GxClasses/Middleware/HandlerFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public bool GetSMap(string actualPath, string objectName, string objectNameUp,
208208
{
209209
foreach (SingleMap m in GXAPIModule.servicesMap[actualPath].Values)
210210
{
211-
if (!m.Path.Equals(m.PathRegexp) && GxRegex.IsMatch(objectName, m.PathRegexp))
211+
if (!m.Path.Equals(m.PathRegexp) && GxRegex.IsMatch(objectName, m.PathRegexp) && m.Verb.Equals(requestType))
212212
{
213213
mapName = m.Name;
214214
routeParms = new Dictionary<string, object>();

0 commit comments

Comments
 (0)