|
@@ -18,6 +18,7 @@ import (
|
|
"net/http"
|
|
"net/http"
|
|
"strings"
|
|
"strings"
|
|
"sync"
|
|
"sync"
|
|
|
|
+ log "gopkg.in/clog.v1"
|
|
)
|
|
)
|
|
|
|
|
|
var (
|
|
var (
|
|
@@ -149,6 +150,7 @@ func (r *Router) handle(method, pattern string, handle Handle) *Route {
|
|
methods := make(map[string]bool)
|
|
methods := make(map[string]bool)
|
|
if method == "*" {
|
|
if method == "*" {
|
|
for m := range _HTTP_METHODS {
|
|
for m := range _HTTP_METHODS {
|
|
|
|
+ log.Trace("Register Methods:%s", m)
|
|
methods[m] = true
|
|
methods[m] = true
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|