1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 21:07:03 +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

@@ -3,6 +3,7 @@ package main
import (
"io/ioutil"
"path/filepath"
"runtime"
"strings"
"testing"
@@ -35,6 +36,7 @@ func (r resource) loadFromBase(dir string) string {
}
result := string(b)
return result
}

View File

@@ -3,6 +3,7 @@ package main
import (
"io/ioutil"
"path/filepath"
"runtime"
"strings"
"testing"
@@ -34,9 +35,9 @@ func (r resource) loadFromBase(dir string) string {
panic(fullpath + " failed with error: " + err.Error())
}
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
}