Skip to content

Commit

Permalink
[Fix] 🐛 Support Latest Bypass Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed May 17, 2024
1 parent b4a31d6 commit e9c79dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cloudflare/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,10 @@ export default {
}

if (currentUrl.pathname === '/turing/captcha/challenge') {
if (currentUrl.searchParams.get('h') != '') {
let params = currentUrl.searchParams.delete('h');
targetUrl = new URL(BING_ORIGIN + '/turing/captcha/challenge' + params.search);
if (currentUrl.searchParams.get('h') != '' && currentUrl.searchParams.get('h') != null && currentUrl.searchParams.get('h') != undefined) {
let params = currentUrl.searchParams;
params.delete('h');
targetUrl = new URL(BING_ORIGIN + '/turing/captcha/challenge' + (params.toString() == '' ? '' : '?' + params.toString()));
} else {
return challenge(request);
}
Expand Down

0 comments on commit e9c79dd

Please sign in to comment.