mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-09 13:21:47 +00:00
* fix(thumbnails): duplicate a copied thumbnail with GetObject + PutObject instead of CopyObject CopyObject names its source as `<bucket>/<key>` in a header, which skips any path in the client's endpoint, so it can miss an object that Bucket/Key requests reach. The copy handler now reads the source object (still behind the HeadObject size bound) and writes it under the copy's key with its content type. * fix(thumbnails): check the GetObject length before buffering a copied thumbnail The size check runs on a HEAD and the read on a separate GET, so an object replaced in between was read whole into memory. Reject a GET response whose length exceeds the cap and destroy its body before reading.