From 4e7fe76cbc0cfd123a07fef23cfca0983d7f88ea Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Tue, 3 Dec 2024 11:16:31 +0100 Subject: [PATCH] Fix bug introduced in #155 (#157) Closes #156 --- lib/fetch-url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fetch-url.js b/lib/fetch-url.js index 6ab7614..9f3e2d9 100644 --- a/lib/fetch-url.js +++ b/lib/fetch-url.js @@ -6,7 +6,7 @@ const request = require("request"); module.exports = (urlObj, service) => { return new Promise((resolve, reject) => { if (typeof urlObj == "string") { - urlObj = { urlObj }; + urlObj = { url: urlObj }; } urlObj.headers = { "User-Agent": "pr-preview" }; request(urlObj, function (error, response, body) {