mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-27 08:39:23 +00:00
feat: add support of cloudflare workers (#596)
This commit is contained in:
@@ -140,8 +140,8 @@ export default class HTTPClient {
|
||||
const response = await this.#fetch(request, {
|
||||
body: request_body,
|
||||
headers: request_headers,
|
||||
credentials: 'include',
|
||||
redirect: input instanceof Platform.shim.Request ? input.redirect : init?.redirect || 'follow'
|
||||
redirect: input instanceof Platform.shim.Request ? input.redirect : init?.redirect || 'follow',
|
||||
...(Platform.shim.runtime !== 'cf-worker' ? { credentials: 'include' } : {})
|
||||
});
|
||||
|
||||
// Check if 2xx
|
||||
|
||||
Reference in New Issue
Block a user