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

Bad TLS behavior without -n #432

Open
ProducerMatt opened this issue Aug 20, 2024 · 0 comments
Open

Bad TLS behavior without -n #432

ProducerMatt opened this issue Aug 20, 2024 · 0 comments

Comments

@ProducerMatt
Copy link

I was using 5.0.18.4 with no --https, certificate or key specified. I found that trying to load the page (locally or remote) would hang indefinitely on a TLS handshake.

If I kill the server, my browser starts showing what it had successfully received, which was only the content of the / page with no assets loaded. The command line log confirms that only the / page was requested.

I was stuck on this until I remembered that "CSP" seen in the help page had something to do with TLS, so I tried passing -n. This let me load everything as intended.

I suppose Hoogle without -n tries to serve non-root pages over HTTPS, even if HTTPS mode isn't enabled.

Reproducing:

I am a total noob to Haskell so PEBKAC is always possible. :)

@ProducerMatt ProducerMatt changed the title Strange TLS behavior Bad TLS behavior with -n Aug 20, 2024
@ProducerMatt ProducerMatt changed the title Bad TLS behavior with -n Bad TLS behavior without -n Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant