From 60be78331201630b434d0e542b30366224c4e09a Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 1 Feb 2017 10:36:49 -0800 Subject: Want blob on request Using has doesn't always trigger want --- lib/serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/serve.js') diff --git a/lib/serve.js b/lib/serve.js index 44c2ca3..507fe72 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -400,7 +400,7 @@ Serve.prototype.blob = function (id) { var self = this var blobs = self.app.sbot.blobs if (self.req.headers['if-none-match'] === id) return self.respond(304) - blobs.has(id, function (err, has) { + blobs.want(id, function (err, has) { if (err) { if (/^invalid/.test(err.message)) return self.respond(400, err.message) else return self.respond(500, err.message || err) -- cgit v1.2.3