Agent added

This commit is contained in:
killer069
2021-08-17 14:14:29 +05:30
parent 102ec0a595
commit 53cc955861
3 changed files with 95 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
import got from "got"
import { video_info } from "."
import agent from 'agentkeepalive'
interface FilterOptions {
averagebitrate? : number;
@@ -90,6 +90,9 @@ export async function stream(url : string, options? : StreamOptions){
'Accept-Encoding': '',
'Accept-Language': 'en-US,en;q=0.8'
},
agent : {
https : new agent.HttpsAgent()
},
http2 : true
})
}