mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Normalize headers
This commit is contained in:
parent
4b9aec6fde
commit
a62ec9cbb4
2 changed files with 10 additions and 12 deletions
|
|
@ -52,10 +52,10 @@ proc proxyMedia*(req: jester.Request; url: string): Future[HttpCode] {.async.} =
|
|||
""
|
||||
|
||||
let headers = newHttpHeaders({
|
||||
"Content-Type": res.headers["content-type", 0],
|
||||
"Content-Length": contentLength,
|
||||
"Cache-Control": maxAge,
|
||||
"ETag": hashed
|
||||
"content-type": res.headers["content-type", 0],
|
||||
"content-length": contentLength,
|
||||
"cache-control": maxAge,
|
||||
"etag": hashed
|
||||
})
|
||||
|
||||
respond(request, headers)
|
||||
|
|
|
|||
Loading…
Reference in a new issue