Return 404 when listing empty directory

This commit is contained in:
Manu Mtz-Almeida
2015-05-24 17:03:44 +02:00
parent fcfe65685a
commit 98951c44aa
2 changed files with 8 additions and 1 deletions
+1
View File
@@ -195,6 +195,7 @@ func TestRouteStaticNoListing(t *testing.T) {
w := performRequest(router, "GET", "/")
assert.Equal(t, w.Code, 404)
assert.NotContains(t, w.Body.String(), "gin.go")
}