mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Use gzip for API calls to lower bandwidth and RAM
This commit is contained in:
parent
5e49e94bf1
commit
3da6c50cb8
4 changed files with 9 additions and 4 deletions
|
|
@ -7,7 +7,8 @@ type
|
|||
var maxConns {.threadvar.}: int
|
||||
|
||||
let keepAlive* = newHttpHeaders({
|
||||
"Connection": "Keep-Alive"
|
||||
"connection": "Keep-Alive",
|
||||
"accept-encoding": "gzip"
|
||||
})
|
||||
|
||||
proc setMaxHttpConns*(n: int) =
|
||||
|
|
|
|||
Loading…
Reference in a new issue