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

How do I DISABLE HTTPS? #1248

Open
Shizcow opened this issue Oct 13, 2021 · 0 comments
Open

How do I DISABLE HTTPS? #1248

Shizcow opened this issue Oct 13, 2021 · 0 comments

Comments

@Shizcow
Copy link

Shizcow commented Oct 13, 2021

How do you, after enabling HTTPS security via secure(), then disable HTTP security?

I'm writing some JUnit tests for code that, among another things, calls Spark.secure when a keystore is available. In order to test both branches (if keystore is/isn't available), I'd like to have one test run with secure and one test without.

However, if the secure test is ran first, the non-secure test still launches with HTTPS enabled. stop();awaitStop(); does not help in this regard -- the security seems to persist between tests.

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