caddy icon indicating copy to clipboard operation
caddy copied to clipboard

feat: add static filename and info served by fileserver to context vars

Open arthurpro opened this issue 8 months ago • 2 comments

Right now it is impossible to get any information about the file served by fileserver from other middlewares. I'm proposing this tiny addition to fileserver module to put info about a static file served by it into the request context.

arthurpro avatar Apr 23 '25 18:04 arthurpro

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 23 '25 18:04 CLAassistant

Thanks for the PR; I'm on the go and unable to check right now, but don't we set placeholders indicating the file that was served? (Or is that only in the file matcher, that we set placeholders of what was matched?)

mholt avatar Apr 28 '25 23:04 mholt