Closed idavollen closed 1 week ago
I believe your question is being answered here: https://github.com/caddyserver/caddy/issues/6647 (correct me if I'm wrong and this is separate)
But in that issue, we will need to see the full code in order to really help. Bits and pieces aren't enough to put together.
There is no singleton of WebDAV in your code, however, the
new(WebDAV)
has been called in many places, especially it's total out of control where the New() in ModuleInfo will be called.How can we ensure that the wd WebDAV serving the HTTP request should be the WebDAV instance containing the Caddyfile config for DAV?
func (wd WebDAV) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error