Skip to content

Commit

Permalink
lambda fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Aug 2, 2021
1 parent 4ddf004 commit 5146a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/netlify-functions/checkLinkAlive.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function checkLink(urlData) {

let contentLength = res.headers.get('Content-Length');
// use libcurl fallback, supports getting Content-Length for 'chunked' encoding
if (contentLength === null) {
if (res.ok && contentLength === null) {
console.info(`retrying with libcurl...`);
try {
console.log(`urlData.url:`, urlData.url)
Expand Down

0 comments on commit 5146a1f

Please sign in to comment.