Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Really use _updated flag from server

  • Loading branch information...
commit 1d0e6d0093102fe3a2057b9873d0f8734848ab61 1 parent 0fdf7eb
Kai Groner groner authored isaacs committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/get.js
2  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]
})
Please sign in to comment.
Something went wrong with that request. Please try again.