From 824610b5fa764d1d128b8533b2a3e5660f89827c Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 27 Jan 2022 11:40:54 +0300 Subject: [PATCH] fix(drivers): fix returning cookies --- pkg/drivers/response.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/drivers/response.go b/pkg/drivers/response.go index bbbe9b06..3719ab4b 100644 --- a/pkg/drivers/response.go +++ b/pkg/drivers/response.go @@ -120,6 +120,10 @@ func (resp *HTTPResponse) GetIn(ctx context.Context, path []core.Value) (core.Va case "responseTime": return values.NewFloat(resp.ResponseTime), nil case "cookies": + if len(path) == 1 { + return resp.Cookies, nil + } + res := NewHTTPCookies() if resp.Cookies != nil {