diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-06-10 21:16:03 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-06-10 21:25:00 -1000 |
commit | a70b61642fbe5dd64fc66ce85028844b746f1868 (patch) | |
tree | ebf205b98f3bf57b326c6a9ab2af578c227cfbaf /lib | |
parent | 3c505eee78211f128c02c4d38deed617b660087c (diff) | |
download | patchfoo-a70b61642fbe5dd64fc66ce85028844b746f1868.tar.gz patchfoo-a70b61642fbe5dd64fc66ce85028844b746f1868.zip |
Concat manually
Diffstat (limited to 'lib')
-rw-r--r-- | lib/serve.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/serve.js b/lib/serve.js index 9db7007..3ade4f6 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -21,7 +21,6 @@ var htime = require('human-time') var ph = require('pull-hyperscript') var emojis = require('emoji-named-characters') var jpeg = require('jpeg-autorotate') -var concat = require('pull-concat') module.exports = Serve @@ -1071,11 +1070,12 @@ Serve.prototype.image = function (path) { blobs.get(id), pull.map(Buffer), ident(heresTheType), - concat.buffer(onFullBuffer) + pull.collect(onFullBuffer) ) function onFullBuffer (err, buffer) { if (err) return heresTheData(err) + buffer = Buffer.concat(buffer) jpeg.rotate(buffer, {}, function (err, rotatedBuffer, orientation) { if (!err) buffer = rotatedBuffer |