diff --git a/Tagfile b/Tagfile index 4f9b378b..27d68a6a 100644 --- a/Tagfile +++ b/Tagfile @@ -1 +1 @@ -0.52.0 +0.52.1 diff --git a/pkg/runtime/cx_request_before_request.go b/pkg/runtime/cx_request_before_request.go index 3eb872b7..cad59496 100644 --- a/pkg/runtime/cx_request_before_request.go +++ b/pkg/runtime/cx_request_before_request.go @@ -103,7 +103,9 @@ func (cr *cxRequestBeforeRequest) Truth() starlark.Bool { return true } func (cr *cxRequestBeforeRequest) Type() string { return cr.ty } func (cr *cxRequestBeforeRequest) Freeze() { - cr.body.Freeze() + if cr.body != nil { + cr.body.Freeze() + } cr.headers.Freeze() cr.method.Freeze() cr.url.Freeze()