Skip to content

Commit 38a7610

Browse files
authored
Resuspend http @icon check (#1327)
* Bogus domain causes untrapped `RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: ENOTFOUND` Applies to #1323 Auto-merge
1 parent c488785 commit 38a7610

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

controllers/scriptStorage.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1467,10 +1467,8 @@ exports.storeScript = function (aUser, aMeta, aBuf, aUpdate, aCallback) {
14671467
fn = /^http:/.test(icon) ? http : https;
14681468

14691469
// Workaround for #1323
1470-
if (fn === https) {
1471-
aInnerCallback(null); // NOTE: Suspend further checks
1472-
return;
1473-
}
1470+
aInnerCallback(null); // NOTE: Suspend further checks
1471+
return;
14741472
// /Workaround for #1323
14751473

14761474
fn.get(URL.parse(icon), function (aRes) {

0 commit comments

Comments
 (0)