UBERF-8890 Fix invalid downloaded file name (#7457)

This commit is contained in:
Alexander Onnikov 2024-12-13 21:10:18 +07:00 committed by GitHub
parent 5175381f06
commit c9bf99e07f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,9 @@ const withBlob: RequestHandler<BlobRequest> = (request: BlobRequest) => {
router
.get('/blob/:workspace/:name', withBlob, handleBlobGet)
.get('/blob/:workspace/:name/:filename', withBlob, handleBlobGet)
.head('/blob/:workspace/:name', withBlob, handleBlobHead)
.head('/blob/:workspace/:name/:filename', withBlob, handleBlobHead)
.delete('/blob/:workspace/:name', withBlob, handleBlobDelete)
// Image
.get('/image/:transform/:workspace/:name', withBlob, handleImageGet)