Skip to content

Commit

Permalink
Tag rfc2047 with mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Martii committed Nov 20, 2021
1 parent b91b4b2 commit f098f08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/scriptStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,8 @@ exports.sendScript = function (aReq, aRes, aNext) {
findMeta(aScript.meta, 'UserScript.updateURL.0.value') // TODO: Simplify maybe
)) {
aRes.set('Warning', '199 ' + aReq.headers.host +
rfc2047.encode(' Invalid @updateURL'));
rfc2047.encode(' Invalid @updateURL') +
(process.env.FORCE_BUSY_UPDATEURL_CHECK === 'true' ? ' in lockdown.' : '.'));
aRes.status(403).send(); // Forbidden
return;
}
Expand Down

0 comments on commit f098f08

Please sign in to comment.