Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

toUpperCase not found #52

Closed
perry-birch opened this issue Oct 23, 2016 · 1 comment
Closed

toUpperCase not found #52

perry-birch opened this issue Oct 23, 2016 · 1 comment

Comments

@perry-birch
Copy link

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}`;
@thenikso
Copy link
Contributor

I think you are referring to PR #45 which is still not merged. Please follow up on that PR to have updates on this issue

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants