π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix log
Manav Rathi88eb0d687e8d
diff --git a/web/apps/photos/src/utils/native-stream.ts b/web/apps/photos/src/utils/native-stream.tsindex c1033545bd..75e018b876 100644--- a/web/apps/photos/src/utils/native-stream.ts+++ b/web/apps/photos/src/utils/native-stream.ts@@ -51,10 +51,11 @@ export const readStream = async (};const readNumericHeader = (res: Response, key: string) => {- const value = +res.headers[key];+ const valueText = res.headers[key];+ const value = +valueText;if (isNaN(value))throw new Error(- `Expected a numeric ${key} when reading a stream response: ${res}`,+ `Expected a numeric ${key} when reading a stream response, instead got ${valueText}`,);return value;};