Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Still doesn't work - ERR_H2_OR_QUIC_REQUIRED

Manav Rathi8c0cbc73436f
diff --git a/web/packages/gallery/services/video.ts b/web/packages/gallery/services/video.ts
index aad047acb8..b595517f5c 100644
--- a/web/packages/gallery/services/video.ts
+++ b/web/packages/gallery/services/video.ts
@@ -422,7 +422,15 @@ const processQueueItem = async (
// we're uploading is potentially very large, so add retries to avoid
// the need to redo everything in case of transient errors.
await retryEnsuringHTTPOkOr4xx(() =>
- fetch(objectUploadURL, { method: "PUT", body: videoRes.body }),
+ fetch(objectUploadURL, {
+ method: "PUT",
+ // Need to specify the duplex option since body is a stream.
+ //
+ // @ts-expect-error TypeScript's libdom.d.ts does not include
+ // the duplex option.
+ duplex: "half",
+ body: videoRes.clone().body
+ }),
);
const playlistData = await encodePlaylistJSON({