Skip to content

Commit

Permalink
Merge pull request #16 from bundleman/fix-get-cookies2
Browse files Browse the repository at this point in the history
fix(drivers): fix returning cookies
  • Loading branch information
bundleman authored Jan 27, 2022
2 parents d2f859b + 824610b commit 087116c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/drivers/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 087116c

Please sign in to comment.