mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
wip (#665)
This commit is contained in:
@@ -46,6 +46,7 @@ func (s *Server) handleFunctionCall2(c *gin.Context) error {
|
|||||||
|
|
||||||
// gin sets this to 404 on NoRoute, so we'll just ensure it's 200 by default.
|
// gin sets this to 404 on NoRoute, so we'll just ensure it's 200 by default.
|
||||||
c.Status(200) // this doesn't write the header yet
|
c.Status(200) // this doesn't write the header yet
|
||||||
|
c.Header("Content-Type", "application/json")
|
||||||
|
|
||||||
return s.serve(c, a, path.Clean(p))
|
return s.serve(c, a, path.Clean(p))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user