Created
April 30, 2015 20:54
-
-
Save mallond/f2bfbe09f353a3d0c0f5 to your computer and use it in GitHub Desktop.
secureProtocal SSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Forward to HTTP with Options | |
// Stop using SSLV3 (no good) | |
var options = | |
{ | |
host: config.uri_velocity.host, | |
port: config.uri_velocity.port, | |
path: config.uri_velocity.path, | |
method: 'POST', | |
headers: { | |
'Content-Type': 'application/x-www-form-urlencoded', | |
'Content-Length': Buffer.byteLength(postData), | |
'Authorization': 'Basic XXXXXXXXXX' | |
}, | |
secureProtocol: 'TLSv1_method' | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment