Skip to content

Commit

Permalink
Fix bug introduced in #155 (#157)
Browse files Browse the repository at this point in the history
Closes #156
  • Loading branch information
tobie authored Dec 3, 2024
1 parent 42c3a50 commit 4e7fe76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fetch-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4e7fe76

Please sign in to comment.