update to latest draft, apply old upload changes

This commit is contained in:
mertalev
2026-04-03 00:52:04 -04:00
parent 253143ed49
commit 0a587bd48d
5 changed files with 33 additions and 21 deletions
@@ -1073,6 +1073,7 @@ describe('/upload', () => {
expect(status).toBe(204);
expect(headers['upload-offset']).toBe('512');
expect(headers['upload-complete']).toBe('?0');
expect(headers['upload-length']).toBe('512');
expect(headers['upload-limit']).toEqual('min-size=1, max-age=259200');
expect(headers['cache-control']).toBe('no-store');
});
@@ -1092,6 +1093,7 @@ describe('/upload', () => {
const { status, headers } = await request(app).options('/upload');
expect(status).toBe(204);
expect(headers['accept-patch']).toBe('application/partial-upload');
expect(headers['upload-limit']).toEqual('min-size=1, max-age=259200');
});
});