From e5f5050ea6875b2024e22f418b6a91b39e0ab126 Mon Sep 17 00:00:00 2001 From: gonrial Date: Fri, 12 May 2017 19:36:12 -0300 Subject: [PATCH] Modify the stock example to show how to change the Content-Type (#124) --- examples/nodejs/stock.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/nodejs/stock.js b/examples/nodejs/stock.js index 889023de..3d52c5c7 100644 --- a/examples/nodejs/stock.js +++ b/examples/nodejs/stock.js @@ -26,6 +26,9 @@ module.exports = async function (context) { status: 200, body: { text: `${symbol} last traded at ${lastTrade}` + }, + headers: { + 'Content-Type': 'application/json' } }; } catch (e) {