mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +00:00
Set header properly
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
parent
cd55a1b9fc
commit
33ac99efd6
@ -10,7 +10,7 @@ module.exports = async (event, context) => {
|
|||||||
let res = await info(content)
|
let res = await info(content)
|
||||||
return context
|
return context
|
||||||
.status(200)
|
.status(200)
|
||||||
.headers("Content-Type", "text/plain")
|
.headers({"Content-Type": "text/plain"})
|
||||||
.succeed(res)
|
.succeed(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,5 +96,3 @@ functions:
|
|||||||
image: functions/nodeinfo-http:latest
|
image: functions/nodeinfo-http:latest
|
||||||
environment:
|
environment:
|
||||||
RAW_BODY: true
|
RAW_BODY: true
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user