diff --git a/BuildServer/app.js b/BuildServer/app.js index cfca4e8..9b8f4d2 100644 --- a/BuildServer/app.js +++ b/BuildServer/app.js @@ -42,7 +42,7 @@ app.get('/manual', routes.manual.get); app.post('/manual', routes.manual.post); app.get('/status/:owner/:reponame/:branch/:rev?', routes.status.page); app.get('/status.svg', routes.status.image); -app.get('/artifact/:owner/:reponame/:branch/:rev/:file', routes.artifact); +app.get('/artifact/:owner/:reponame/:branch/:rev/*', routes.artifact); http.createServer(app).listen(app.get('port'), function(){ console.log('Express server listening on port ' + app.get('port')); diff --git a/BuildServer/routes/artifact.js b/BuildServer/routes/artifact.js index 14acb55..b91e071 100644 --- a/BuildServer/routes/artifact.js +++ b/BuildServer/routes/artifact.js @@ -7,7 +7,7 @@ module.exports = function(req, res) { branchName: req.params.branch, branch: "/refs/heads/" + req.params.branch, rev: req.params.rev, - file: req.params.file + file: req.params[0] }; res.sendfile(req.app.get('releasepath') + "/" + options.owner + "/" + options.reponame + "/" + options.branch + "/" + options.rev + "/" + options.file);