Skip to content

toUpperCase not found #52

@perry-birch

Description

@perry-birch

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions