Skip to content

https: throw error if required params missing

Rodrigo Muino Tomonari requested to merge github/fork/kulkarniankita/master into master

throw Error when required parameters for options in https.createServer are missing

The required parameters of https.createServer is key and cert. When these parameters are not provided by the user then a new Error is thrown for the missing parameter. A subsequent test is also added to verify the same.

This was discussed in Issue: https://github.com/nodejs/node/issues/3024

cc: @jasnell @mhdawson

Merge request reports

Loading