Skip to content

Commit f931714

Browse files
authored
Merge pull request #121 from Radekyspec/patch-2
Fix api -401
2 parents 9f8c7ca + 4803b6d commit f931714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class DDAtHome extends EventEmitter {
3636
this.emit('log', 'job received', url)
3737
this.emit('url', url)
3838
const time = Date.now()
39-
const opts = { headers: { Cookie: '_uuid=;rpdid=' } }
39+
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' } }
4040
const data = await fetch(url, opts).then(w => w.text()).catch(() => JSON.stringify({ code: 233 }))
4141
const result = this.secureSend(JSON.stringify({
4242
key,

0 commit comments

Comments
 (0)