Added some reconnection - logic

This commit is contained in:
killer069
2021-08-17 11:50:50 +05:30
parent fbd4d2aaf9
commit 06ebe8e9c7
3 changed files with 8 additions and 3 deletions

View File

@@ -85,5 +85,10 @@ export async function stream(url : string, options? : StreamOptions){
return got.stream(final[0].url, {
retry : 5,
headers: {
'Connection': 'keep-alive',
'Accept-Encoding': '',
'Accept-Language': 'en-US,en;q=0.8'
}
})
}