Permalink
Browse files

Really use _updated flag from server

  • Loading branch information...
1 parent 0fdf7eb commit 1d0e6d0093102fe3a2057b9873d0f8734848ab61 @groner groner committed with isaacs Oct 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/get.js
View
@@ -78,7 +78,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 = data._updated || Date.parse(headers.date)
+ , updated = updates._updated || Date.parse(headers.date)
Object.keys(updates).forEach(function (p) {
data[p] = updates[p]
})

0 comments on commit 1d0e6d0

Please sign in to comment.