mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
add extra info to headers.json
This commit is contained in:
parent
80d7a30f13
commit
38ca5c3228
1 changed files with 4 additions and 0 deletions
|
@ -271,7 +271,11 @@ def get_headers(url: str, timeout: int=None) -> str:
|
||||||
|
|
||||||
return pyjson.dumps(
|
return pyjson.dumps(
|
||||||
{
|
{
|
||||||
|
'URL': url,
|
||||||
'Status-Code': response.status_code,
|
'Status-Code': response.status_code,
|
||||||
|
'Elapsed': response.elapsed,
|
||||||
|
'Encoding': response.encoding,
|
||||||
|
'Apparent-Encoding': response.apparent_encoding,
|
||||||
**dict(response.headers),
|
**dict(response.headers),
|
||||||
},
|
},
|
||||||
indent=4,
|
indent=4,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue