@boy-offi9-inc/tidepull 0.7.6 → 0.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core/http.js CHANGED
@@ -75,7 +75,7 @@ export class Http {
75
75
  const start = new URL(url);
76
76
  let cur = start;
77
77
  for (let hop = 0;; hop++) {
78
- const own = Object.fromEntries(Object.entries(init.headers ?? {}).filter(([k]) => cur.origin === start.origin || k.toLowerCase() === "range"));
78
+ const own = Object.fromEntries(Object.entries(init.headers ?? {}).filter(([k]) => cur.origin === start.origin || ["range", "user-agent"].includes(k.toLowerCase())));
79
79
  const headers = { ...this.headersFor(cur, start), ...own };
80
80
  const cookie = this.cookies?.(cur);
81
81
  if (cookie) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boy-offi9-inc/tidepull",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "description": "A minimal, from-scratch media downloader library: extractor plugins, yt-dlp-style format selection, resumable downloads.",
5
5
  "type": "module",
6
6
  "license": "MIT",