Screenshot resizing works in the UI now. Still missing rate limiting.

This commit is contained in:
Simo Kinnunen
2014-05-21 14:07:53 +09:00
parent e56d757cde
commit c0d02c4e3a
8 changed files with 43 additions and 47 deletions

View File

@@ -31,7 +31,7 @@ module.exports = syrup.serial()
)))
}
else {
resolve(storage.store(res, {
resolve(storage.store('image', res, {
filename: util.format('%s.png', options.serial)
, contentType: 'image/png'
, knownLength: +res.headers['content-length']