This commit is contained in:
Travis Reeder
2018-01-09 13:27:38 -08:00
committed by GitHub
parent 4fa781563c
commit 82541d24ee

View File

@@ -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))
} }