The above appears to make the assumption of a certain type of response but will not bark under certain conditions or responses such as:
[Error: DEPTH_ZERO_SELF_SIGNED_CERT]
This would be the default response generated attempting to connect to a server with a self signed certificate (which could very well be expected in a dev environment).
Connecting to a server with a self signed certificate and replacing the above code with the following will show you the error:
httpntlm.js - line 50
The above appears to make the assumption of a certain type of response but will not bark under certain conditions or responses such as:
This would be the default response generated attempting to connect to a server with a self signed certificate (which could very well be expected in a dev environment).
Connecting to a server with a self signed certificate and replacing the above code with the following will show you the error:
Not sure how you're passing errors or know enough aboust async to pull, methinks. I'll try playing with it.