-
Notifications
You must be signed in to change notification settings - Fork 417
Closed
Description
There is a case when the http event comes back unparsed as a single string, this quick check (between for and const method) should alleviate:
serve.js - line: 43:
for (let httpEvent of funcConf.events) {
if(typeof httpEvent === 'string'){
var split = httpEvent.split(' ');
httpEvent = {
path: split[1],
method: split[0],
}
}
const method = httpEvent.method.toLowerCase();
let endpoint = `/${httpEvent.path}`;
Metadata
Metadata
Assignees
Labels
No labels