Skip to content

Commit

Permalink
Merge pull request #121 from Radekyspec/patch-2
Browse files Browse the repository at this point in the history
Fix api -401
  • Loading branch information
simon300000 authored Sep 29, 2022
2 parents 9f8c7ca + 4803b6d commit f931714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class DDAtHome extends EventEmitter {
this.emit('log', 'job received', url)
this.emit('url', url)
const time = Date.now()
const opts = { headers: { Cookie: '_uuid=;rpdid=' } }
const opts = { headers: { Cookie: '_uuid=;rpdid=', 'User-Agent': 'Mozilla/5.0 (iPad; CPU OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/105.0.5195.100 Mobile/15E148 Safari/604.1' } }
const data = await fetch(url, opts).then(w => w.text()).catch(() => JSON.stringify({ code: 233 }))
const result = this.secureSend(JSON.stringify({
key,
Expand Down

0 comments on commit f931714

Please sign in to comment.