* Make HEAD requests work when doing Nix closure downloads.
[?]
Nov 28, 2008, 4:46 PM
FSE6N6S3PH6YJ6VGBVLYG5P44MEV3OBB5GFX2ZKZTNXI7BLZG3NACDependencies
- [2]
YTSIRIMK* Separate job status and all builds pages. - [3]
2AIIYGI5* Show job status and all builds for a project. - [*]
J5UVLXOK* Start of a basic Catalyst web interface. - [*]
2GK5DOU7* Downloading closures. - [*]
L5VIEXSC* Allow downloading of build products.
Change contents
- replacement in src/Hydra/lib/Hydra/Controller/Root.pm at line 149
$page = int($page) || 1;$page = (defined $page ? int($page) : 1) || 1; - edit in src/Hydra/lib/Hydra/Controller/Root.pm at line 759[6.414][7.498]
# !!! quick hack; this is to make HEAD requests return the right# MIME type. This is set in the view as well, but the view isn't# called for HEAD requests. There should be a cleaner solution...$c->response->content_type('application/x-nix-export');$c->response->header('Content-Disposition' => 'attachment; filename=' . $c->stash->{name} . '.closure.gz');