Skip to content

Commit

Permalink
Add support for pfx keys when using https as an object (#218)
Browse files Browse the repository at this point in the history
The original solution checked if `@https.key` was set,
which will not be set when the options `pfx` is used.
Quickfix by adding additional check for `@https.pfx`,
note that this will only add support for pfx.
  • Loading branch information
eirikb authored and justinmchase committed Oct 5, 2018
1 parent aa10ee3 commit 6274d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ConnectApp

# use some defaults when not set. do not touch when a key is already specified
# see https://github.com/AveVlad/gulp-connect/issues/172
if typeof (@https) is 'boolean' || !@https.key
if typeof (@https) is 'boolean' || (!@https.key && !@https.pfx)

# change it into an object if it is not already one
if !(typeof (@https) is "object")
Expand Down

0 comments on commit 6274d62

Please sign in to comment.