for outline path content type to always be text/html
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user