Modify the stock example to show how to change the Content-Type (#124)
This commit is contained in:
@@ -26,6 +26,9 @@ module.exports = async function (context) {
|
|||||||
status: 200,
|
status: 200,
|
||||||
body: {
|
body: {
|
||||||
text: `${symbol} last traded at ${lastTrade}`
|
text: `${symbol} last traded at ${lastTrade}`
|
||||||
|
},
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user