1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Optimize encoding detection (#1243)

* Optimize encoding detection

* Use a threshold based system
This commit is contained in:
Batuhan Taskaya
2021-12-23 22:05:58 +03:00
committed by GitHub
parent 5a83a9ebc4
commit e09401b81a
6 changed files with 71 additions and 10 deletions

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')