Skip to content

Commit

Permalink
Updated the SSL version.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBone committed Jul 8, 2018
1 parent 3610da8 commit 2b6849e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.js
Expand Up @@ -52,7 +52,7 @@ function insertRow(database, developmentApplication) {

function requestPage(url, callback) {
console.log(`Requesting page: ${url}`);
request.get({ uri: url, agentOptions: { secureProtocol: "SSLv2_method" } }, (error, response, body) => {
request.get({ uri: url, agentOptions: { secureProtocol: "SSLv23_method" } }, (error, response, body) => {
if (error)
console.log(`Error requesting page ${url}: ${error}`);
else
Expand Down

0 comments on commit 2b6849e

Please sign in to comment.