fix(nbstore): fix cloud blob in ios and android (#11938)

This commit is contained in:
EYHN authored and GitHub committed 2025-04-30 10:25:15 +08:00
1 parent 365a0a605b
commit a75ae38308
2 files changed
+38 -3

No files matched your search

@@ -70,7 +70,12 @@ export class WorkspacesController {
// metadata should always exists if body is not null
if (metadata) {
res.setHeader('content-type', metadata.contentType);
res.setHeader(
'content-type',
metadata.contentType.startsWith('application/json') // application/json is reserved for redirect url
? 'text/json'
: metadata.contentType
);
res.setHeader('last-modified', metadata.lastModified.toUTCString());
res.setHeader('content-length', metadata.contentLength);
} else {