diff --git a/gateway/gateway_test.go b/gateway/gateway_test.go index 122f4af3f..9de77fab0 100644 --- a/gateway/gateway_test.go +++ b/gateway/gateway_test.go @@ -309,7 +309,7 @@ func newTestServerAndNode(t *testing.T, ns mockNamesys) (*httptest.Server, *mock } func matchPathOrBreadcrumbs(s string, expected string) bool { - matched, _ := regexp.MatchString("Index of\n[\t ]*"+regexp.QuoteMeta(expected), s) + matched, _ := regexp.MatchString("Index of(\n|\r\n)[\t ]*"+regexp.QuoteMeta(expected), s) return matched }