mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-23 22:04:49 +08:00
优化httpserver
This commit is contained in:
@@ -293,7 +293,7 @@ func suitableMethods(prefix string, typ reflect.Type, reportErr bool) map[string
|
||||
mname := method.Name
|
||||
|
||||
if prefix != "" {
|
||||
if len(mname) < 4 || mname[:4] != prefix {
|
||||
if strings.Contains(mname, prefix) == false {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user