We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e04526c commit 4b59fe3Copy full SHA for 4b59fe3
1 file changed
src/_data/depctrl.js
@@ -11,7 +11,7 @@ var procesesed = [];
11
const limitedWebRequest = async (url, type) => {
12
// Limit to web url
13
if (!url.toLowerCase().startsWith("http://") && !url.toLowerCase().startsWith("https://")) {
14
- return Promise.reject(new Error("Only http and https urls are allowed"));
+ url = "http://" + url;
15
}
16
17
return limit((url, type) => EleventyFetch(url, {
@@ -160,9 +160,6 @@ const resolveReverseDependencies = async (feeds) => {
160
161
// fetch single feed
162
const fetchFeed = (url) => {
163
- if (!url.startsWith("https://") && !url.startsWith("http://")) {
164
- url = "http://" + url;
165
- }
166
return limitedWebRequest(url, "text")
167
.then((feedResponse) => {
168
// remove trailing commas. Not ideal as there can be false positives
0 commit comments