Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add support for google cloud functions #7

Merged
merged 1 commit into from Nov 14, 2018

Conversation

christopherL91
Copy link
Contributor

This PR makes it possible to use this module together with google cloud functions. The issue here was that the request object was being tampered with before the request hit this module. I updated extract.js with the following content:

if (req.rawBody) {
  busboy.end(req.rawBody)
} else {
  req.pipe(busboy)
}

as per suggestion from here: busboy issue

@dominhhai dominhhai merged commit 65bb77c into dominhhai:master Nov 14, 2018
@dominhhai
Copy link
Owner

thank you!

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

Successfully merging this pull request may close these issues.

None yet

2 participants