Skip to content

Commit

Permalink
release(v1.6.5) (#201)
Browse files Browse the repository at this point in the history
* release(v1.6.5)

* Verify non empty body in træfik response
  • Loading branch information
darkweak authored Apr 6, 2022
1 parent bf3b204 commit 903649b
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ experimental:
plugins:
souin:
moduleName: github.com/darkweak/souin
version: v1.6.3
version: v1.6.5
```
After that you can declare either the whole configuration at once in the middleware block or by service. See the examples below.
```yaml
Expand Down
4 changes: 2 additions & 2 deletions plugins/caddy/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.16

require (
github.com/caddyserver/caddy/v2 v2.4.6
github.com/darkweak/souin v1.6.3
github.com/darkweak/souin v1.6.5
go.uber.org/zap v1.19.1
)

replace github.com/darkweak/souin v1.6.3 => ../..
replace github.com/darkweak/souin v1.6.5 => ../..
4 changes: 2 additions & 2 deletions plugins/chi/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module github.com/darkweak/souin/plugins/chi
go 1.16

require (
github.com/darkweak/souin v1.6.3
github.com/darkweak/souin v1.6.5
github.com/go-chi/chi/v5 v5.0.7
go.uber.org/zap v1.19.1
)

replace github.com/darkweak/souin v1.6.3 => ../..
replace github.com/darkweak/souin v1.6.5 => ../..
4 changes: 2 additions & 2 deletions plugins/echo/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module github.com/darkweak/souin/plugins/echo
go 1.16

require (
github.com/darkweak/souin v1.6.3
github.com/darkweak/souin v1.6.5
github.com/labstack/echo/v4 v4.6.1
go.uber.org/zap v1.19.1
)

replace github.com/darkweak/souin v1.6.3 => ../..
replace github.com/darkweak/souin v1.6.5 => ../..
4 changes: 2 additions & 2 deletions plugins/gin/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/darkweak/souin/plugins/gin
go 1.16

require (
github.com/darkweak/souin v1.6.3
github.com/darkweak/souin v1.6.5
github.com/gin-gonic/gin v1.7.7
github.com/go-playground/validator/v10 v10.10.0 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
Expand All @@ -14,4 +14,4 @@ require (
google.golang.org/protobuf v1.27.1 // indirect
)

replace github.com/darkweak/souin v1.6.3 => ../..
replace github.com/darkweak/souin v1.6.5 => ../..
4 changes: 2 additions & 2 deletions plugins/skipper/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module github.com/darkweak/souin/plugins/skipper
go 1.16

require (
github.com/darkweak/souin v1.6.3
github.com/darkweak/souin v1.6.5
github.com/zalando/skipper v0.13.174
go.uber.org/zap v1.19.1
)

replace github.com/darkweak/souin v1.6.3 => ../..
replace github.com/darkweak/souin v1.6.5 => ../..
6 changes: 5 additions & 1 deletion plugins/traefik/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ func (r *CustomWriter) Send() (int, error) {
}
}
r.Rw.WriteHeader(r.Response.StatusCode)
b, _ := ioutil.ReadAll(r.Response.Body)
var b []byte

if r.Response.Body != nil {
b, _ = ioutil.ReadAll(r.Response.Body)
}
return r.Rw.Write(b)
}

Expand Down
4 changes: 2 additions & 2 deletions plugins/traefik/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ module github.com/darkweak/souin/plugins/traefik
go 1.16

require (
github.com/darkweak/souin v1.6.3
github.com/darkweak/souin v1.6.5
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/pquerna/cachecontrol v0.1.0
go.uber.org/zap v1.19.1
)

replace github.com/darkweak/souin v1.6.3 => ../..
replace github.com/darkweak/souin v1.6.5 => ../..

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/traefik/vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ github.com/buraksezer/olric/stats
github.com/cespare/xxhash
# github.com/cespare/xxhash/v2 v2.1.2
github.com/cespare/xxhash/v2
# github.com/darkweak/souin v1.6.3 => ../..
# github.com/darkweak/souin v1.6.5 => ../..
## explicit
github.com/darkweak/souin/api
github.com/darkweak/souin/api/auth
Expand Down
4 changes: 2 additions & 2 deletions plugins/tyk/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/TykTechnologies/gojsonschema v0.0.0-20170222154038-dcb3e4bb7990 // indirect
github.com/TykTechnologies/tyk v2.9.5+incompatible
github.com/clbanning/mxj v1.8.4 // indirect
github.com/darkweak/souin v1.6.3
github.com/darkweak/souin v1.6.5
github.com/franela/goblin v0.0.0-20211003143422-0a4f594942bf // indirect
github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8 // indirect
github.com/hashicorp/terraform v1.0.1 // indirect
Expand All @@ -22,6 +22,6 @@ require (
)

replace (
github.com/darkweak/souin v1.6.3 => ../..
github.com/darkweak/souin v1.6.5 => ../..
github.com/hashicorp/terraform v1.0.1 => github.com/hashicorp/terraform v0.14.11
)
4 changes: 2 additions & 2 deletions plugins/webgo/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.16

require (
github.com/bnkamalesh/webgo/v6 v6.6.1
github.com/darkweak/souin v1.6.3
github.com/darkweak/souin v1.6.5
go.uber.org/zap v1.19.1
)

replace github.com/darkweak/souin v1.6.3 => ../..
replace github.com/darkweak/souin v1.6.5 => ../..

0 comments on commit 903649b

Please sign in to comment.