diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-12-13 18:06:43 -0800 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-12-13 18:06:43 -0800 |
commit | 881da5cf2e9fd6f84d104a5bee4a07a78840da8c (patch) | |
tree | c8792f3175e30d6d083790e8ddd5923d4c23c9dc /lib | |
parent | c329eae0e6ff3d36d7f21349980d51d9dd587faa (diff) | |
download | patchfoo-881da5cf2e9fd6f84d104a5bee4a07a78840da8c.tar.gz patchfoo-881da5cf2e9fd6f84d104a5bee4a07a78840da8c.zip |
Generate private blob links using querystring-style
Diffstat (limited to 'lib')
-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 56b981b..066f5d4 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -2458,7 +2458,7 @@ Serve.prototype.composer = function (opts, cb) { if (data.upload) { var href = data.upload.link - + (data.upload.key ? '#' + data.upload.key : '') + + (data.upload.key ? '?unbox=' + data.upload.key + '.boxs': '') // TODO: be able to change the content-type var isImage = /^image\//.test(data.upload.type) data.text = (data.text ? data.text + '\n' : '') |