Skip to content

Commit

Permalink
Revert changes to helloHttp (customer feedback)
Browse files Browse the repository at this point in the history
Changes were made in #1232; this reverts them.
  • Loading branch information
Ace Nassri authored Jun 10, 2019
1 parent a204dce commit 2b4a848
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions functions/helloworld/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,7 @@ exports.helloGET = (req, res) => {
* More info: https://expressjs.com/en/api.html#res
*/
exports.helloHttp = (req, res) => {
const name =
req.query && req.query.name
? req.query.name
: req.body && req.body.name
? req.body.name
: 'World';
res.send(`Hello ${escapeHtml(name)}!`);
res.send(`Hello ${escapeHtml(req.query.name || req.body.name || 'World')}!`);
};
// [END functions_helloworld_http]

Expand Down

0 comments on commit 2b4a848

Please sign in to comment.