Closed htfy96 closed 4 years ago
Hmm, what is your Go module's go.mod file?
@htfy96 Thanks, so that's the problem:
github.com/caddyserver/certmagic v0.11.0 // indirect
Caddy is not yet compatible with v0.11.0 (but probably will be this week, once I have a little time.)
Run go mod tidy
and that might even fix the problem for you; if not, just use v0.10.13 in your go.mod instead.
PS. I'm excited to see the finished plugin! A lot of people will find filtering features useful.
Bonus points if it can someday work with a stream (i.e. without having to buffer the entire response body) -- that is left as an academic exercise, however. :wink:
Thanks for your help! Currently it works with a bounded-cap buffer, which only buffers first 2MB and once the body exceeds that, it abandons buffering and filtering.
Hi,
I'm trying to develop a plugin for Caddy 2 based on v2.0.0 tag, but all xcaddy command returned error when I tried to build caddy: