for outline path content type to always be text/html

This commit is contained in:
Kevin Pham
2023-12-07 10:00:13 -06:00
parent df19209211
commit 4cf2f8c782

View File

@@ -20,7 +20,7 @@ func NewOutlineHandler(path string, opts *ProxyOptions) fiber.Handler {
rx.SpoofReferrerFromGoogleSearch(), rx.SpoofReferrerFromGoogleSearch(),
). ).
AddResponseModifications( AddResponseModifications(
tx.ForwardResponseHeaders(), tx.SetResponseHeader("content-type", "text/html"),
tx.DeleteIncomingCookies(), tx.DeleteIncomingCookies(),
tx.RewriteHTMLResourceURLs(), tx.RewriteHTMLResourceURLs(),
tx.GenerateReadableOutline(), // <-- this response modification does the outline rendering tx.GenerateReadableOutline(), // <-- this response modification does the outline rendering