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

New samples for Cloud Functions docs #132

Merged
merged 23 commits into from
Jun 23, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make sure a response gets sent.
  • Loading branch information
jmdobry committed Jun 23, 2016
commit b2eb9d9669827db43366df67971fad1e61215d08
2 changes: 2 additions & 0 deletions functions/sendgrid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ exports.sendgridEmail = function sendgridEmail (req, res) {
}
if (response.body) {
res.send(response.body);
} else {
res.end();
}
});
} catch (err) {
Expand Down