Commit 6d331f7a authored by nanahira's avatar nanahira

fix checksum

parent a9631fe6
Pipeline #40988 passed with stages
in 1 minute and 11 seconds
......@@ -81,9 +81,11 @@ export class UpdateController {
@Res() res: Response,
@Param('id') id: string,
@Query(new ValidationPipe({ transform: true })) depot: DepotDto,
@Param('version') version: string,
@Param('version') version: string
) {
await stableSend(req, res, this.updateService.getChecksum(id, depot, version));
const checksum = await this.updateService.getChecksum(id, depot, version);
const checksumText = checksum.files.map((f) => `${f.hash} ${f.name}`).join('\n') + '\n';
await stableSend(req, res, checksumText, 'public, max-age=31536000, immutable', 'text/plain; charset=utf-8');
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment