mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
add extra information to headers extractor output
This commit is contained in:
parent
c4888ace38
commit
c6faa9ab76
2 changed files with 5 additions and 1 deletions
|
@ -210,7 +210,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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue