Skip to content

Commit 6274d62

Browse files
eirikbjustinmchase
authored andcommitted
Add support for pfx keys when using https as an object (#218)
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.
1 parent aa10ee3 commit 6274d62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class ConnectApp
5656

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

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

0 commit comments

Comments
 (0)