mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 13:54:20 +03:00
eyre: allow header-list to contain multiple cookies
This commit is contained in:
parent
6b97c2e8da
commit
b977864bec
@ -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)
|
||||
|
@ -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?
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user