Skip to content

chore: disable HTTP for HTTPS only config - #196

Merged
tomasbjerre merged 2 commits into
wiremock:mainfrom
horvathandris:main
Mar 12, 2026
Merged

chore: disable HTTP for HTTPS only config#196
tomasbjerre merged 2 commits into
wiremock:mainfrom
horvathandris:main

Conversation

@horvathandris

Copy link
Copy Markdown
Contributor

Currently, for a HTTPS only config like

@EnableWireMock(
  @ConfigureWireMock(port = -1, httpsPort = 0)
)

the WireMockServer's httpDisabled property is not set. This means that the default value (8080) is pulled from new WireMockConfiguration(), instead of no HTTP port.

In this change, I'm simply setting the httpDisabled property according to the config.

Submitter checklist

  • Recommended: Join WireMock Slack to get any help in #help-contributing or a project-specific channel like #wiremock-java
  • The PR request is well described and justified, including the body and the references
  • The PR title represents the desired changelog entry
  • The repository's code style is followed (see the contributing guide)
  • Test coverage that demonstrates that the change works as expected
  • For new features, there's necessary documentation in this pull request or in a subsequent PR to wiremock.org

@tomasbjerre tomasbjerre added the bug Something isn't working label Mar 12, 2026
@tomasbjerre
tomasbjerre merged commit c74e4ae into wiremock:main Mar 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants