mirror of
https://github.com/prymitive/karma
synced 2026-05-15 04:06:41 +00:00
We can't set any headers after c.Abort() was called (which will happen in the static files middleware if file was found) so we need to refactor this code. New logic will be: set all headers early, if file is found response will include those, later add second middleware that clears those headers, it will only be hit if file wasn't found, so we'll clear headers on all 404s
7.0 KiB
7.0 KiB