diff --git a/client/nginx.go b/client/nginx.go index 4317ad95..dd712fcc 100644 --- a/client/nginx.go +++ b/client/nginx.go @@ -1046,6 +1046,7 @@ func (client *NginxClient) patch(ctx context.Context, path string, input interfa if err != nil { return fmt.Errorf("failed to create a patch request: %w", err) } + req.Header.Set("Content-Type", "application/json") resp, err := client.httpClient.Do(req) if err != nil {