mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
minor
This commit is contained in:
parent
9ed566b076
commit
22e25c3586
|
@ -361,6 +361,8 @@ Other Improvements:
|
||||||
|
|
||||||
- Fix `AutoTLS` when used with `iris.TLSNoRedirect` [*](https://github.com/kataras/iris/issues/1577). The `AutoTLS` runner can be customized through the new `iris.AutoTLSNoRedirect` instead, read its go documentation. Example of having both TLS and non-TLS versions of the same application without conflicts with letsencrypt `./well-known` path:
|
- Fix `AutoTLS` when used with `iris.TLSNoRedirect` [*](https://github.com/kataras/iris/issues/1577). The `AutoTLS` runner can be customized through the new `iris.AutoTLSNoRedirect` instead, read its go documentation. Example of having both TLS and non-TLS versions of the same application without conflicts with letsencrypt `./well-known` path:
|
||||||
|
|
||||||
|
![](https://iris-go.com/images/github/autotls-1.png)
|
||||||
|
|
||||||
```go
|
```go
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,10 @@ func TestJSONLogger(t *testing.T) {
|
||||||
got := out.String()
|
got := out.String()
|
||||||
got = got[strings.Index(got, "{"):] // take only the json we care and after.
|
got = got[strings.Index(got, "{"):] // take only the json we care and after.
|
||||||
if expected != got {
|
if expected != got {
|
||||||
|
if !strings.HasSuffix(got, expected) {
|
||||||
|
// C:/mygopath vs /home/travis vs any file system,
|
||||||
|
// pure check but it does the job.
|
||||||
t.Fatalf("expected:\n%s\nbut got:\n%s", expected, got)
|
t.Fatalf("expected:\n%s\nbut got:\n%s", expected, got)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user