From 4cf2f8c78287f7165a1097f2ebd00c647063c78a Mon Sep 17 00:00:00 2001 From: Kevin Pham Date: Thu, 7 Dec 2023 10:00:13 -0600 Subject: [PATCH] for outline path content type to always be text/html --- handlers/outline.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/outline.go b/handlers/outline.go index d96dd78..2960bd0 100644 --- a/handlers/outline.go +++ b/handlers/outline.go @@ -20,7 +20,7 @@ func NewOutlineHandler(path string, opts *ProxyOptions) fiber.Handler { rx.SpoofReferrerFromGoogleSearch(), ). AddResponseModifications( - tx.ForwardResponseHeaders(), + tx.SetResponseHeader("content-type", "text/html"), tx.DeleteIncomingCookies(), tx.RewriteHTMLResourceURLs(), tx.GenerateReadableOutline(), // <-- this response modification does the outline rendering