diff --git a/handler/handler.go b/handler/handler.go index 24f7cbf..0d9ca52 100644 --- a/handler/handler.go +++ b/handler/handler.go @@ -141,7 +141,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { q.Program = h.Config.ForceRepo } // validate query - valid := q.User != "" + valid := q.Program != "" if !valid && path == "" { http.Redirect(w, r, "https://github.com/jpillora/installer", http.StatusMovedPermanently) return