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

Commit

Permalink
Convert html amp to ampersand
Browse files Browse the repository at this point in the history
  • Loading branch information
codemanki committed Feb 12, 2020
1 parent 66da655 commit aacc217
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ function onChallenge (options, response, body) {
if (options.baseUrl !== undefined) {
options.baseUrl = undefined;
}
// Change required by Cloudflate in Jan-Feb 2020
options.uri = options.uri.replace(/&/g, '&');

// Make request with answer after delay.
timeout -= Date.now() - response.responseStartTime;
Expand Down

0 comments on commit aacc217

Please sign in to comment.