1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 04:47:02 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-02-19 09:06:22 +02:00
parent efcdd4b9e5
commit 0081171aa6
3 changed files with 3 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ func TestEmbeddingFilesIntoApp(t *testing.T) {
e.GET(url).Expect().
Status(httptest.StatusOK).
ContentType(u.contentType(), app.ConfigurationReadOnly().GetCharset()).
ContentType(u.contentType()).
Body().Equal(contents)
}
}

View File

@@ -56,6 +56,7 @@ func (r resource) loadFromBase(dir string) string {
if runtime.GOOS != "windows" {
result = strings.ReplaceAll(result, "\n", "\r\n")
result = strings.ReplaceAll(result, "\r\r", "")
}
return result
}