Skip to content

Commit

Permalink
Auto-prefix https during protocol handling
Browse files Browse the repository at this point in the history
  • Loading branch information
captainbrosset committed Aug 24, 2022
1 parent 4e129a3 commit f1c0a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwamp/importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function importSongFromURL(url, title = 'Unknown', artist = 'Unknow
}

if (!url.startsWith('http')) {
url = 'http://' + url;
url = 'https://' + url;
}

const duration = await getSongDuration(url);
Expand Down

0 comments on commit f1c0a0b

Please sign in to comment.