mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 02:47:04 +00:00
New DirOptions.Cache field for in-memory caching and pre-compression for the fastest possible static file server
Read HISTORY.md it contains a breaking change, second parameter of HandleDir should be iris.Dir(...) instead of just a string relative to: https://github.com/kataras/iris/issues/1556#issuecomment-661057446 Former-commit-id: 14b48a06fb3b99287dff543932be2937a64233b9
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/kataras/iris/v12"
|
||||
"github.com/kataras/iris/v12/httptest"
|
||||
)
|
||||
|
||||
@@ -98,7 +99,7 @@ func TestHandleDirDot(t *testing.T) {
|
||||
"/v1/assets.system/css/main.css",
|
||||
}
|
||||
app := newApp()
|
||||
app.Subdomain("test").Party("/v1").HandleDir("/assets.system", "./assets.system")
|
||||
app.Subdomain("test").Party("/v1").HandleDir("/assets.system", iris.Dir("./assets.system"))
|
||||
|
||||
e := httptest.New(t, app, httptest.URL("http://test.example.com"))
|
||||
for _, u := range urls {
|
||||
|
||||
Reference in New Issue
Block a user