Skip to content

Commit

Permalink
ignore boolean params where string in needed to try other options
Browse files Browse the repository at this point in the history
Signed-off-by: js665999 <[email protected]>
  • Loading branch information
js665999 authored and Nakul Manchanda committed Jul 16, 2020
1 parent 2b0a203 commit 97c24f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ function validateParams (params) {
}

function whichHttpsType(params) {
if(params.key>'' && params.cert>'') {
if(params.key>'' && params.cert>'' && typeof params.key === 'string' && typeof params.cert === 'string') {
return HTTPS_TYPE.KEY_CERT;
}

if(params.pfx>'' && params.pass>'') {
if(params.pfx>'' && params.pass>'' && typeof params.pfx === 'string' && typeof params.pass === 'string') {
return HTTPS_TYPE.PFX_PASS;
}

Expand Down

0 comments on commit 97c24f1

Please sign in to comment.