@exezt-/webamp 1.5.0-0x6 → 1.5.0-0x601

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.
@@ -14827,9 +14827,7 @@ class webamp_telegram_handler_WinampTelegramCustomHandler {
14827
14827
  if (item.size > 0x1400000) {
14828
14828
  console.info(`File ${item.name} can't be loaded due oversize`);
14829
14829
  } else {
14830
- await fetch(item.file, {
14831
- headers: [['Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'], ['Content-Type', 'application/octet-stream']]
14832
- }).then(response => response).then(resp => fetch(resp.url)).then(async response => {
14830
+ await fetch(item.file).then(response => response).then(resp => fetch(resp.url)).then(async response => {
14833
14831
  if (response.status === 302) {
14834
14832
  return await fetch(response.headers.get('Location'), {
14835
14833
  headers: [['Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'], ['Content-Type', 'application/octet-stream']]