chg: return http status 400 if no url is provided

This commit is contained in:
Tobi Schäfer 2020-04-24 22:41:03 +02:00
parent da17ed5855
commit da4ac4333c

View file

@ -22,7 +22,7 @@
Proxy.prototype.main_action = function () {
const url = req.data.url;
if (!url) return;
if (!url) return res.status = 400;
const callback = req.data.callback;
const http = new helma.Http();