Skip to content

gzip support for image download - #6

Open
cPu1 wants to merge 6 commits into
supercomputer-io:work-uifrom
cPu1:work-ui
Open

gzip support for image download#6
cPu1 wants to merge 6 commits into
supercomputer-io:work-uifrom
cPu1:work-ui

Conversation

@cPu1

@cPu1 cPu1 commented May 25, 2015

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread controllers/download_controller.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these lines can be improved

return res.sendStatus(404) if image not in [ 'Z7010', 'Z7020' ]
RESIN_IMAGE_PREFIX = 'resin-supercomputer-0.1.0-0.0.14'
CORES_COUNT = 16
imageName = [ RESIN_IMAGE_PREFIX, image, CORES_COUNT ].join('-') + '.img'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants