added debug for headers received
This commit is contained in:
@@ -222,6 +222,12 @@ app.get('/flic-webhook', authenticateFlicRequest, async (req, res) => {
|
||||
// Get click_type from query parameter instead of request body
|
||||
const click_type = req.query.click_type;
|
||||
|
||||
// Debug: Log all headers received from Flic
|
||||
console.log('DEBUG - All headers received:');
|
||||
Object.keys(req.headers).forEach(headerName => {
|
||||
console.log(` ${headerName}: ${req.headers[headerName]}`);
|
||||
});
|
||||
|
||||
console.log(`Received GET webhook: Button=${buttonName}, Type=${click_type}, Timestamp=${timestamp || 'N/A'}`);
|
||||
|
||||
// Basic validation
|
||||
|
||||
Reference in New Issue
Block a user