mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 02:31:04 +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:
|
||||
|
||||
![](https://iris-go.com/images/github/autotls-1.png)
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
|
|
|
@ -50,6 +50,10 @@ func TestJSONLogger(t *testing.T) {
|
|||
got := out.String()
|
||||
got = got[strings.Index(got, "{"):] // take only the json we care and after.
|
||||
if expected != got {
|
||||
t.Fatalf("expected:\n%s\nbut got:\n%s", 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user