Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Commit

Permalink
rejectUnauthorized and bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenedith committed Aug 7, 2016
1 parent 2855341 commit bd289b4
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/client/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var getTicketsRequest = function getTicketsRequest(jar, month, page, formConfig,
var opt = {
url: url,
method: 'GET',
rejectUnauthorized: false,
followRedirect: true,
headers: formConfig.headers,
// gzip: true,
Expand Down
1 change: 1 addition & 0 deletions lib/client/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ var auth = function auth(jar, form, token, authRequestConfig, callback) {
var opt = {
url: authRequestConfig.url,
method: 'POST',
rejectUnauthorized: false,
form: form,
followRedirect: false,
headers: headers,
Expand Down
2 changes: 2 additions & 0 deletions lib/client/createTicket.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ var sendLotteryTicketRequest = function sendLotteryTicketRequest(jar, token, cap
var opt = {
url: ticketsRequestConfig.url,
method: 'POST',
rejectUnauthorized: false,
form: form,
followRedirect: true,
headers: headers,
Expand Down Expand Up @@ -120,6 +121,7 @@ var sendCaptchaRequest = function sendCaptchaRequest(jar, token, captcha, captch
var opt = {
url: captchaRequestConfig.url,
method: 'POST',
rejectUnauthorized: false,
form: form,
followRedirect: true,
headers: headers,
Expand Down
1 change: 1 addition & 0 deletions lib/client/getTicket.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var getLotteryTicketRequest = function getLotteryTicketRequest(jar, token, id, t
var opt = {
url: url,
method: 'GET',
rejectUnauthorized: false,
followRedirect: true,
headers: headers,
// gzip: true,
Expand Down
1 change: 1 addition & 0 deletions lib/client/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ var getMainPage = function getMainPage(jar, options, callback) {
var opts = {
url: mainRequestConfig.url,
method: 'GET',
rejectUnauthorized: false,
followRedirect: true,
headers: mainRequestConfig.headers,
jar: jar,
Expand Down
1 change: 1 addition & 0 deletions lib/client/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var getResultsRequest = function getResultsRequest(jar, page, formConfig, callba
var opt = {
url: url,
method: 'GET',
rejectUnauthorized: false,
followRedirect: true,
headers: formConfig.headers,
// gzip: true,
Expand Down
1 change: 1 addition & 0 deletions lib/client/updateTicket.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ var updateLotteryTicketRequest = function updateLotteryTicketRequest(jar, token,
var opt = {
url: url,
method: 'POST',
rejectUnauthorized: false,
form: form,
followRedirect: true,
headers: headers,
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "receipts-lottery-client",
"version": "1.2.2",
"version": "1.3.0",
"description": "Receipts lottery client",
"main": "./index.js",
"dependencies": {
Expand Down Expand Up @@ -45,6 +45,6 @@
"node": ">=6.2.1"
},
"readmeFilename": "README.md",
"_id": "receipts-lottery-client@1.2.1",
"_from": "receipts-lottery-client@^1.2.1"
"_id": "receipts-lottery-client@1.3.0",
"_from": "receipts-lottery-client@^1.3.0"
}

0 comments on commit bd289b4

Please sign in to comment.