Migrate Nylon bundle hosting to Bunny

This commit is contained in:
Eric Wendland 2026-07-20 22:37:00 +02:00
commit 484abbeadd

View file

@ -166,6 +166,9 @@ class BunnyStorage:
def get_manifest(self) -> bytes | None: def get_manifest(self) -> bytes | None:
return self._request("GET", MANIFEST_NAME, missing_ok=True) return self._request("GET", MANIFEST_NAME, missing_ok=True)
def download(self, path: str) -> bytes | None:
return self._request("GET", path, missing_ok=True)
def upload(self, item: LocalFile) -> None: def upload(self, item: LocalFile) -> None:
content_type = mimetypes.guess_type(item.path)[0] or "application/octet-stream" content_type = mimetypes.guess_type(item.path)[0] or "application/octet-stream"
self._request( self._request(