Skip to content

Commit

Permalink
FIX: using the new modified instead of date in the HTTP scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jul 13, 2024
1 parent 9bde6a3 commit ea7b6de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mezz/prot-http.reb
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ do-request: func [
]
port/state/state: 'doing-request
info/headers: info/response-line: info/status-code: port/data:
info/size: info/date: info/name: none
info/size: info/modified: info/name: none

write port/state/connection make-http-request :spec
]
Expand Down Expand Up @@ -429,7 +429,7 @@ check-response: func [port /local conn res headers d1 d2 line info state awake s
select headers 'date
][
; allow invalid date, but ignore it on error
try [info/date: to-date/utc date]
try [info/modified: to-date/utc date]
]
remove/part conn/data d2
state/state: 'reading-data
Expand Down

0 comments on commit ea7b6de

Please sign in to comment.