Skip to content

Commit

Permalink
fix too_many_redirects on error message
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Jul 23, 2024
1 parent 63d490c commit c29ce0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/system/htmlparser/htmlparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {
headers: {}
});
} else if (!!options.exposeStatusCode
&& error === 'too_many_redirects') {
&& (error.message === 'too_many_redirects' || error === 'too_many_redirects')) {

cb(null, {
__statusCode: 508, // Hello Instagram, see #503
Expand Down

0 comments on commit c29ce0f

Please sign in to comment.