Commit 076fc4d7 authored by karthic rao's avatar karthic rao

Update

Update with missing assertion for the Next middleware being properly set , this makes sure that Ext middleware carries the requests to the further middlewares .
parent d7db1b95
...@@ -35,5 +35,9 @@ func TestExt(t *testing.T) { ...@@ -35,5 +35,9 @@ func TestExt(t *testing.T) {
if myHandler.Extensions[2] != ".php" { if myHandler.Extensions[2] != ".php" {
t.Errorf("Expected .php in the list of Extensions") t.Errorf("Expected .php in the list of Extensions")
} }
if !sameNext(myHandler.Next, emptyNext) {
t.Error("'Next' field of handler was not set properly")
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment