From 2840a5e089687e450cab629a2649833ea61a354a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Wed, 17 Aug 2016 00:13:06 +0200 Subject: [PATCH] push_github: return empty response instead of a template, fixes #309 --- src/lib/Hydra/Controller/API.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Hydra/Controller/API.pm b/src/lib/Hydra/Controller/API.pm index 478f8884..7c74a651 100644 --- a/src/lib/Hydra/Controller/API.pm +++ b/src/lib/Hydra/Controller/API.pm @@ -256,6 +256,7 @@ sub push_github : Chained('api') PathPart('push-github') Args(0) { { join => 'project' , where => \ [ 'exists (select 1 from JobsetInputAlts where project = me.project and jobset = me.name and value like ?)', [ 'value', "%github.com%$owner/$repo%" ] ] }); + $c->response->body(""); }