eyre: remove redundant connection retrieval

This commit is contained in:
Joe Bryan 2023-05-03 18:25:48 -04:00
parent 7fb2f613d4
commit 007a32c47a

View File

@ -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)
==