Skip to content

Commit

Permalink
fix: SSL verification was incorrectly disabled by default and enabled…
Browse files Browse the repository at this point in the history
… by `-k` option (fixes #231)
  • Loading branch information
rsenden committed Jan 17, 2023
1 parent 153f96e commit 7fa56c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static final void configure(UnirestInstance unirestInstance, IUrlConfig u
if ( urlConfig==null ) { throw new IllegalArgumentException("URL configuration may not be null"); }
unirestInstance.config()
.defaultBaseUrl(normalizeUrl(urlConfig.getUrl()))
.verifySsl(urlConfig.isInsecureModeEnabled());
.verifySsl(!urlConfig.isInsecureModeEnabled());
}

/**
Expand Down

0 comments on commit 7fa56c3

Please sign in to comment.