mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 05:22:27 +03:00
eyre: remove redundant connection retrieval
This commit is contained in:
parent
7fb2f613d4
commit
007a32c47a
@ -2058,8 +2058,8 @@
|
||||
(session-cookie-string u.session-id &)
|
||||
headers.response-header.http-event
|
||||
::
|
||||
=/ connection=outstanding-connection
|
||||
(~(got by connections.state) duct)
|
||||
=* connection u.connection-state
|
||||
::
|
||||
:: if the request was a simple cors request from an approved origin
|
||||
:: append the necessary cors headers to the response
|
||||
::
|
||||
@ -2078,7 +2078,7 @@
|
||||
=. connections.state
|
||||
%- (trace 2 |.("{<duct>} start"))
|
||||
%+ ~(put by connections.state) duct
|
||||
%_ connection
|
||||
%= connection
|
||||
response-header `response-header
|
||||
bytes-sent ?~(data.http-event 0 p.u.data.http-event)
|
||||
==
|
||||
|
Loading…
Reference in New Issue
Block a user