Skip to content

Commit

Permalink
add google cloud functions compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gcoda committed Dec 15, 2018
1 parent 8d0f3e5 commit e22efc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/processRequest.mjs
Expand Up @@ -325,7 +325,8 @@ export const processRequest = (
)
})

request.pipe(parser)
if (request.rawBody) parser.end(request.rawBody)
else request.pipe(parser)
})

/**
Expand Down

0 comments on commit e22efc3

Please sign in to comment.