mirror of
https://github.com/Lissy93/web-check.git
synced 2024-11-22 16:23:56 +01:00
Fix missing url param when called by server direct
This commit is contained in:
parent
127db45247
commit
65ff004b63
@ -26,7 +26,7 @@ const analyze = async (url) => {
|
||||
|
||||
exports.handler = async (event, context, callback) => {
|
||||
// Validate URL parameter
|
||||
if (!event.queryStringParameters || !event.queryStringParameters.url) {
|
||||
if (!(event.queryStringParameters || event.query).url) {
|
||||
return {
|
||||
statusCode: 400,
|
||||
body: JSON.stringify({ error: 'Missing url parameter' }),
|
||||
|
Loading…
Reference in New Issue
Block a user