add mw to resolve ip address
This commit is contained in:
parent
24d8590b56
commit
1f1bb7a1aa
7 changed files with 298 additions and 5 deletions
|
|
@ -166,4 +166,3 @@ func TestConflictingPatternsPanic(t *testing.T) {
|
|||
}()
|
||||
m.Get("/x", func(w http.ResponseWriter, r *http.Request) {})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import "testing"
|
|||
|
||||
func TestSplitPattern(t *testing.T) {
|
||||
cases := []struct {
|
||||
in string
|
||||
method, host, path string
|
||||
in string
|
||||
method, host, path string
|
||||
}{
|
||||
{"/foo", "", "", "/foo"},
|
||||
{"GET /foo", "GET", "", "/foo"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue