From 6274d627e01f54cebf6e7da6b2bd03298e2d1935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eirik=20Brandtz=C3=A6g?= Date: Fri, 5 Oct 2018 17:48:33 +0200 Subject: [PATCH] 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. --- src/index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.coffee b/src/index.coffee index 9a2fe02..89ea461 100644 --- a/src/index.coffee +++ b/src/index.coffee @@ -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")