Optimize encoding detection (#1243)

* Optimize encoding detection

* Use a threshold based system
This commit is contained in:
Batuhan Taskaya
2021-12-23 11:05:58 -08:00
committed by GitHub
parent 5a83a9ebc4
commit e09401b81a
6 changed files with 71 additions and 10 deletions
+1 -2
View File
@@ -178,9 +178,8 @@ for pretty in ['all', 'none']:
f'`http --pretty={pretty} pie.dev/stream/1000`',
[
'--print=HBhb',
'--stream',
f'--pretty={pretty}',
'httpbin.org/stream/100'
'httpbin.org/stream/1000'
]
)
DownloadRunner('download', '`http --download :/big_file.txt` (3GB)', '3G')