From 1c737e174437a7b0b7968af0a1b2d4191faffb98 Mon Sep 17 00:00:00 2001 From: Oldes Date: Thu, 10 May 2018 12:25:04 +0200 Subject: [PATCH] FIX: better `date` handling... (to date! is now working on idate string) related to issue: https://github.com/rebol/rebol-issues/issues/467 --- src/mezz/prot-http.r | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mezz/prot-http.r b/src/mezz/prot-http.r index 16b6dab853..c71ced347b 100644 --- a/src/mezz/prot-http.r +++ b/src/mezz/prot-http.r @@ -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 ] @@ -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 ] ]