fix httpclient.lastModified bad pattern in parsing (#12698)
This commit is contained in:
parent
5456da3ca9
commit
a114a40b57
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ proc lastModified*(response: Response | AsyncResponse): DateTime =
|
|||
## Raises a ``ValueError`` if the parsing fails or the value is not a correctly
|
||||
## formatted time.
|
||||
var lastModifiedHeader = response.headers.getOrDefault("last-modified")
|
||||
result = parse(lastModifiedHeader, "dd, dd MMM yyyy HH:mm:ss Z")
|
||||
result = parse(lastModifiedHeader, "ddd, dd MMM yyyy HH:mm:ss 'GMT'", utc())
|
||||
|
||||
proc body*(response: Response): string =
|
||||
## Retrieves the specified response's body.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue