chg: return http status 400 if no url is provided
This commit is contained in:
parent
da17ed5855
commit
da4ac4333c
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue