From 7081f94afc2ef41f1a2c9d5e45fd3a9c7d58b09c Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Mon, 12 Jun 2017 14:43:32 +0800 Subject: [PATCH] --- src/org/redkale/net/http/Rest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/redkale/net/http/Rest.java b/src/org/redkale/net/http/Rest.java index 11d5df3a3..032da7907 100644 --- a/src/org/redkale/net/http/Rest.java +++ b/src/org/redkale/net/http/Rest.java @@ -1671,10 +1671,10 @@ public final class Rest { if (mapping == null) mapping = DEFAULT__MAPPING; this.methodidx = methodidx; this.ignore = mapping.ignore(); - String n = mapping.name().toLowerCase(); + String n = mapping.name(); if (n.isEmpty()) { - String t = method.getName().toLowerCase(); - int pos = t.indexOf(defmodulename.toLowerCase()); + String t = method.getName(); + int pos = t.indexOf(defmodulename); n = pos > 0 ? t.substring(0, pos) : t; } this.name = n;