diff --git a/playground/local.go b/playground/local.go index 452054bd4cd..741ab6f9e76 100644 --- a/playground/local.go +++ b/playground/local.go @@ -19,6 +19,7 @@ func post(ctx context.Context, url, contentType string, body io.Reader) (*http.R if err != nil { return nil, fmt.Errorf("http.NewRequest: %v", err) } + req.Header.Set("Content-Type", contentType) return http.DefaultClient.Do(req.WithContext(ctx)) }