From b977864becaac8a7fbf2d2041517c34e2f7ccc9c Mon Sep 17 00:00:00 2001 From: Pyry Kovanen Date: Thu, 21 Sep 2023 00:03:32 +0300 Subject: [PATCH] eyre: allow header-list to contain multiple cookies --- pkg/arvo/app/azimuth-tracker.hoon | 2 +- pkg/arvo/sys/vane/eyre.hoon | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/pkg/arvo/app/azimuth-tracker.hoon b/pkg/arvo/app/azimuth-tracker.hoon index 9287c4a2a4..4f1c11560c 100644 --- a/pkg/arvo/app/azimuth-tracker.hoon +++ b/pkg/arvo/app/azimuth-tracker.hoon @@ -121,7 +121,7 @@ :: ++ on-poke |= [=mark =vase] - ?> (our.bowl src.bowl) + ?> (team:title [our src]:bowl) ?. ?=(%azimuth-tracker-poke mark) (on-poke:def mark vase) =+ !<(poke=poke-data vase) diff --git a/pkg/arvo/sys/vane/eyre.hoon b/pkg/arvo/sys/vane/eyre.hoon index a9af7d9f07..efb6a46c9b 100644 --- a/pkg/arvo/sys/vane/eyre.hoon +++ b/pkg/arvo/sys/vane/eyre.hoon @@ -1347,14 +1347,15 @@ ^- (unit @uv) :: are there cookies passed with this request? :: - :: TODO: In HTTP2, the client is allowed to put multiple 'Cookie' - :: headers. + =/ cookie-header=@t + %+ roll header-list.request + |= [[key=@t value=@t] c=@t] + ?. =(key 'cookie') + c + (cat 3 (cat 3 c ?~(c 0 '; ')) value) + :: is the cookie line valid? :: - ?~ cookie-header=(get-header:http 'cookie' header-list.request) - ~ - :: is the cookie line is valid? - :: - ?~ cookies=(rush u.cookie-header cock:de-purl:html) + ?~ cookies=(rush cookie-header cock:de-purl:html) ~ :: is there an urbauth cookie? ::