~alanpearce/searchix

ee83dfd741c47bd25eac1ac7139f20875de0452c — Alan Pearce 4 months ago c4f8adb
fix: panic rendering error pages
1 files changed, 2 insertions(+), 0 deletions(-)

M internal/server/error.go
M internal/server/error.go => internal/server/error.go +2 -0
@@ 3,6 3,7 @@ package server
import (
	"net/http"

	"go.alanpearce.eu/searchix/frontend"
	"go.alanpearce.eu/searchix/internal/components"
	"go.alanpearce.eu/searchix/internal/config"
	"go.alanpearce.eu/x/log"


@@ 22,6 23,7 @@ func createErrorHandler(
			Sources:       sources,
			Code:          code,
			Message:       message,
			Assets:        frontend.Assets,
		}
		w.Header().Set("Cache-Control", "no-store")
		w.Header().Del("Vary")