Skip to content

Commit

Permalink
FIX: better date handling... (to date! is now working on idate string)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed May 10, 2018
1 parent 8eda0ef commit 1c737e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mezz/prot-http.r
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ check-response: func [port /local conn res headers d1 d2 line info state awake s
info/headers: headers: construct/with d1 http-response-headers
info/name: spec/ref
if headers/content-length [info/size: headers/content-length: to integer! headers/content-length]
if headers/last-modified [info/date: attempt [to date! headers/last-modified]]
if headers/last-modified [info/date: attempt [idate-to-date headers/last-modified]]
remove/part conn/data d2
state/state: 'reading-data
]
Expand Down Expand Up @@ -579,7 +579,6 @@ sys/make-scheme [
]
if none? state [return none]
either state/info/response-parsed = 'ok [
attempt [ state/info/date: idate-to-date state/info/headers/Last-Modified ]
state/info
][ none ]
]
Expand Down

0 comments on commit 1c737e1

Please sign in to comment.