Skip to content

Commit e04526c

Browse files
committed
Use http if no protocol provided
1 parent 396951e commit e04526c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/_data/depctrl.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ const resolveReverseDependencies = async (feeds) => {
160160

161161
// fetch single feed
162162
const fetchFeed = (url) => {
163+
if (!url.startsWith("https://") && !url.startsWith("http://")) {
164+
url = "http://" + url;
165+
}
163166
return limitedWebRequest(url, "text")
164167
.then((feedResponse) => {
165168
// remove trailing commas. Not ideal as there can be false positives

0 commit comments

Comments
 (0)