Set header properly

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (OpenFaaS Ltd) 2020-03-02 20:43:03 +00:00
parent cd55a1b9fc
commit 33ac99efd6
2 changed files with 1 additions and 3 deletions

View File

@ -10,7 +10,7 @@ module.exports = async (event, context) => {
let res = await info(content)
return context
.status(200)
.headers("Content-Type", "text/plain")
.headers({"Content-Type": "text/plain"})
.succeed(res)
}

View File

@ -96,5 +96,3 @@ functions:
image: functions/nodeinfo-http:latest
environment:
RAW_BODY: true