mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-20 13:21:52 +02:00
add response status code to headers.json
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user