Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
Respect _updated flag from server for /-/all
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jun 28, 2012
1 parent 961d7a9 commit 6457e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/get.js
Expand Up @@ -76,7 +76,7 @@ function requestAll_ (c, data, cb) {
this.request('GET', uri, function (er, updates, _, res) {
if (er) return cb(er, data)
var headers = res.headers
, updated = Date.parse(headers.date)
, updated = data._updated || Date.parse(headers.date)
Object.keys(updates).forEach(function (p) {
data[p] = updates[p]
})
Expand Down

0 comments on commit 6457e81

Please sign in to comment.