From 25d46f88029008382fbde8fc1d6ac62dae331d29 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski <ayufan@ayufan.eu> Date: Tue, 28 Feb 2017 11:35:49 +0100 Subject: [PATCH] Fix condition --- internal/builds/register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/builds/register.go b/internal/builds/register.go index ff7bc5626860b..645f3db165979 100644 --- a/internal/builds/register.go +++ b/internal/builds/register.go @@ -49,7 +49,7 @@ func RegisterHandler(h http.Handler, pollingDuration time.Duration) http.Handler return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { lastUpdate := r.Header.Get("X-GitLab-Last-Update") - if lastUpdate != "" { + if lastUpdate == "" { // We could have a fail-over implementation here, for old runners, that: // Proxies the requests, if this is 204, we delay the response to client, // By checking the response from handler, and reading `X-GitLab-Last-Update`, -- GitLab