mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 06:34:16 +00:00
fix headers Elapsed timedelta is not a JSON-serializable
This commit is contained in:
parent
917af4b1d7
commit
6ffa710bb3
1 changed files with 2 additions and 2 deletions
|
@ -273,8 +273,8 @@ def get_headers(url: str, timeout: int=None) -> str:
|
|||
{
|
||||
'URL': url,
|
||||
'Status-Code': response.status_code,
|
||||
'Elapsed': response.elapsed,
|
||||
'Encoding': response.encoding,
|
||||
'Elapsed': response.elapsed.total_seconds()*1000,
|
||||
'Encoding': str(response.encoding),
|
||||
'Apparent-Encoding': response.apparent_encoding,
|
||||
**dict(response.headers),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue