added - http / https agent support when sending requests
fixed - superfulous "|| undefined" in the definition.
Merge pull request #50 from yuxhuang/https-self-signed-fix

Support HTTP / HTTPS agent