1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-14 02:24:06 +02:00

add extra info to headers.json

This commit is contained in:
Nick Sweeting
2024-08-22 17:57:40 -07:00
parent 80d7a30f13
commit 38ca5c3228

View File

@@ -271,7 +271,11 @@ def get_headers(url: str, timeout: int=None) -> str:
return pyjson.dumps(
{
'URL': url,
'Status-Code': response.status_code,
'Elapsed': response.elapsed,
'Encoding': response.encoding,
'Apparent-Encoding': response.apparent_encoding,
**dict(response.headers),
},
indent=4,