diff --git a/internal/instruction/runner.go b/internal/instruction/runner.go index 0e31f745..97394b96 100644 --- a/internal/instruction/runner.go +++ b/internal/instruction/runner.go @@ -276,6 +276,11 @@ func (r *Runner) next(instrs []instruction, hsURL string, i int) (*http.Request, return nil, nil, 0 } + if body != nil { + // all bodies, if set, are JSON encoded + req.Header["Content-Type"] = []string{"application/json"} + } + q := req.URL.Query() if instr.accessToken != "" { at, ok := r.lookup.Load(instr.accessToken)