mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-17 20:01:44 +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(
|
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,
|
||||||
|
Reference in New Issue
Block a user