Skip to content

Commit 727668c

Browse files
committed
Async response is JSON
1 parent ae73de1 commit 727668c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/server/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ func (s *Server) run(rw http.ResponseWriter, req *http.Request) {
149149
go func() {
150150
_, _ = s.runner.Run(ctx, prg, os.Environ(), string(body))
151151
}()
152+
rw.Header().Set("Content-Type", "application/json")
152153
err := json.NewEncoder(rw).Encode(map[string]any{
153154
"id": id,
154155
})

0 commit comments

Comments
 (0)