Skip to content

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

Open
arthurpro wants to merge 1 commit intocaddyserver:masterfrom
arthurpro:feature/fileserver-fileinfo
Open

feat: add static filename and info served by fileserver to context vars#6983
arthurpro wants to merge 1 commit intocaddyserver:masterfrom
arthurpro:feature/fileserver-fileinfo

Conversation

@arthurpro
Copy link

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.

@CLAassistant
Copy link

CLAassistant commented Apr 23, 2025

CLA assistant check
All committers have signed the CLA.

@mholt
Copy link
Member

mholt commented Apr 28, 2025

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?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants