Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
codemanki committed Nov 28, 2019
1 parent 6b97077 commit d8b400f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function onChallenge (options, response, body) {
match = body.match(/name="(.+?)" value="(.+?)"/);

if (match) {
let hiddenInputName = match[1];
const hiddenInputName = match[1];
payload[hiddenInputName] = match[2];
}

Expand Down Expand Up @@ -358,7 +358,7 @@ function onChallenge (options, response, body) {
options.headers.Referer = uri.href;
// Check is form to be submitted via GET or POST
match = body.match(/id="challenge-form" action="(.+?)" method="(.+?)"/);
if(match && match[2] && match[2] === 'POST') {
if (match && match[2] && match[2] === 'POST') {
options.uri = uri.protocol + '//' + uri.host + match[1];
// Pass the payload using body form
options.form = payload;
Expand All @@ -369,7 +369,7 @@ function onChallenge (options, response, body) {
// Pass the payload using query string
options.qs = payload;
}
// Decrement the number of challenges to solve.
// Decrement the number of challenges to solve.
options.challengesToSolve -= 1;
// baseUrl can't be used in conjunction with an absolute uri
if (options.baseUrl !== undefined) {
Expand Down

0 comments on commit d8b400f

Please sign in to comment.