mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 14:44:18 +00:00
add response status code to headers.json
This commit is contained in:
parent
b9b1c3d9e8
commit
c089501073
1 changed files with 7 additions and 1 deletions
|
@ -200,7 +200,13 @@ def get_headers(url: str, timeout: int=None) -> str:
|
|||
stream=True
|
||||
)
|
||||
|
||||
return pyjson.dumps(dict(response.headers), indent=4)
|
||||
return pyjson.dumps(
|
||||
{
|
||||
'Status-Code': response.status_code,
|
||||
**dict(response.headers),
|
||||
},
|
||||
indent=4,
|
||||
)
|
||||
|
||||
|
||||
@enforce_types
|
||||
|
|
Loading…
Reference in a new issue