Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

httpcaddyfile: Fix redir <to> html #6001

Merged
merged 1 commit into from
Jan 10, 2024
Merged

httpcaddyfile: Fix redir <to> html #6001

merged 1 commit into from
Jan 10, 2024

Commits on Jan 10, 2024

  1. httpcaddyfile: Fix redir <to> html

    Before this commit, the response's Content-Type header was set to
    text/plain, which causes some browsers to treat it as plaintext instead
    of html, and thereby just showing the html code instead of parsing it
    and redirecting as expected.
    
    This commit fixes that issue by setting Content-Type to text/html
    Now the browser parses the response body as HTML, which leads to the
    redirect working as expected.
    subnut committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    80ca0e6 View commit details
    Browse the repository at this point in the history