Features
- (utils): Add
viaHEX
helper: 34e65a2
Decodes a hexadecimal string into aUint8Array
Note: This is the inverse of the existingtoHEX
helper.
Patches
-
(cache): Clone
Response
beforeSet-Cookie
guard: ac19ee9This fixes a bug with worktop that only occurred when a handler returned a fetch() call directly and the subrequest was to a resource that was cacheable & had a "Set-Cookie" header.
In code, this may have looked like:
API.add('GET', '/example', (req, res) => { return fetch('https://other.com/foobar'); });
And where the response from
'https://other.com/foobar'
was both cacheable and had a "Set-Cookie" header.Any/All other cache usage was (and remains) unaffected.