mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-24 04:15:33 +00:00
.
This commit is contained in:
parent
64fcc0c59a
commit
a039094e93
2 changed files with 8 additions and 6 deletions
|
@ -142,15 +142,16 @@ function downloadFile(url: string, fileStream: WriteStream): Promise<void> {
|
|||
return
|
||||
}
|
||||
|
||||
response.on('data', chunk => {
|
||||
fileStream.write(chunk)
|
||||
})
|
||||
// response.on('data', chunk => {
|
||||
// fileStream.write(chunk)
|
||||
// })
|
||||
response.on('end', () => {
|
||||
resolve()
|
||||
})
|
||||
response.on('error', err => {
|
||||
reject(err)
|
||||
})
|
||||
response.pipe(fileStream)
|
||||
})
|
||||
} catch (err) {
|
||||
reject(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue