Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions 06-assets/src/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,4 @@ async def fetch(self, request):
if path in ["/", "/index.html"]:
return Response(INDEX_PAGE, headers={"Content-Type": "text/html"})

# TODO: Once https://github.com/cloudflare/workerd/pull/4926 is released, can do
# self.env.ASSETS.fetch(request) without the .js_object
return await self.env.ASSETS.fetch(request.js_object)
return await self.env.ASSETS.fetch(request)