From bd5207e18d4f298608ca39d100efb76bea7c2e04 Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Tue, 3 Dec 2024 11:14:44 +0100 Subject: [PATCH] Fix bug introduced in #155 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) {