Function
cookiePair
(response: Response, name: string)
Source from the content-addressed store, hash-verified
| 64 | const target = yield* Target; |
| 65 | |
| 66 | const cookiePair = (response: Response, name: string): string | undefined => { |
| 67 | for (const header of response.headers.getSetCookie()) { |
| 68 | if (header.startsWith(`${name}=`)) return header.split(";")[0]; |
| 69 | } |
| 70 | return undefined; |
| 71 | }; |
| 72 | |
| 73 | // 1. A signed-out DOCUMENT request for a deep page is redirected to |
| 74 | // /login carrying the original path. |
Tested by
no test coverage detected