From 5ea0cb138bd4152724afa73909db508e73452fd1 Mon Sep 17 00:00:00 2001 From: Amine Date: Mon, 27 May 2019 20:26:36 +0200 Subject: Update documentation and function naming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Michael Muré --- bridge/launchpad/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bridge/launchpad/config.go') diff --git a/bridge/launchpad/config.go b/bridge/launchpad/config.go index c5f72c01..ef206fd5 100644 --- a/bridge/launchpad/config.go +++ b/bridge/launchpad/config.go @@ -92,7 +92,10 @@ func promptProjectName() (string, error) { func validateProject(project string) (bool, error) { url := fmt.Sprintf("%s/%s", apiRoot, project) - resp, err := http.Get(url) + client := := &http.Client{ + Timeout: defaultTimeout, + } + resp, err := client.Get(url) if err != nil { return false, err } -- cgit