mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-14 10:34:20 +02:00
add extra info to headers.json
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user