diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-02-01 10:36:49 -0800 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-02-04 02:53:51 -0800 |
commit | 60be78331201630b434d0e542b30366224c4e09a (patch) | |
tree | b708dd580aefd71909b6ff294248841812ccc3f8 /lib/serve.js | |
parent | 5b3dc4bf49f367de33fcd4e6e21281ffec91b6a7 (diff) | |
download | patchfoo-60be78331201630b434d0e542b30366224c4e09a.tar.gz patchfoo-60be78331201630b434d0e542b30366224c4e09a.zip |
Want blob on request
Using has doesn't always trigger want
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) |