Skip to content

Commit 5eda490

Browse files
committed
Relaxed constraints for looking up "get" method alternative to a unmapped POST/save request in the getServiceResponse() method in WebService
1 parent 2efcbde commit 5eda490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/javaxt/express/WebService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public ServiceResponse getServiceResponse(ServiceRequest request, Database datab
220220
//that map to a "save" method (e.g. saveCompanies) that does
221221
//not exist. Let's check if there's a suitable "get" method
222222
//instead (e.g. getCompanies).
223-
if (methods==null && i==5 && methodName.endsWith("s")){
223+
if (methods==null && i==5){ // && methodName.endsWith("s")
224224
methods = serviceMethods.get("get" + methodName);
225225
}
226226

0 commit comments

Comments
 (0)