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 d854adf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cloudflare/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,9 @@ 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);
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 d854adf

Please sign in to comment.