1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00

make cache package to work across multi handlers, remove the old 'WrapHandler' and keep the cache.Handler as documented only

Former-commit-id: b030cd92d26a9f646b060e379b3702b9a677749b
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-01-01 21:53:12 +02:00
parent 9e6691e5ce
commit b43b25626b
8 changed files with 215 additions and 99 deletions

View File

@@ -34,9 +34,9 @@ func (r resource) loadFromBase(dir string) string {
}
result := string(b)
//if runtime.GOOS != "windows" {
// result = strings.Replace(result, "\n", "\r\n", -1)
//}
if runtime.GOOS != "windows" {
result = strings.Replace(result, "\n", "\r\n", -1)
}
return result
}