all repos — searchix @ dec2c516100350a78f0b7116bc6f9d76325e7760

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor: instantiate AssetCollection explicitly

Alan Pearce
commit

dec2c516100350a78f0b7116bc6f9d76325e7760

parent

0ae74e5f6af61819e8f954960287ea14ec447834

1 file changed, 2 insertions(+), 1 deletion(-)

changed files
M internal/server/error.gointernal/server/error.go
@@ -11,6 +11,7 @@ )
func createErrorHandler( config *config.Config, + assets *frontend.AssetCollection, log *log.Logger, ) func(http.ResponseWriter, *http.Request, string, int) { return func(w http.ResponseWriter, r *http.Request, message string, code int) {
@@ -23,7 +24,7 @@ ExtraHeadHTML: config.Web.ExtraHeadHTML,
Sources: sources, Code: code, Message: message, - Assets: frontend.Assets, + Assets: assets, } w.Header().Set("Cache-Control", "no-store") w.Header().Del("Vary")