You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 withsecure
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.The text was updated successfully, but these errors were encountered: