Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'helpers_test.go')
-rw-r--r--helpers_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/helpers_test.go b/helpers_test.go
index 60d04304..1dc31ef8 100644
--- a/helpers_test.go
+++ b/helpers_test.go
@@ -212,7 +212,11 @@ func GetPageFromListener(t *testing.T, spec ListenSpec, host, urlsuffix string)
req.Host = host
- t.Logf("curl -H'Host: %s' %s", host, url)
+ return DoPagesRequest(t, req)
+}
+
+func DoPagesRequest(t *testing.T, req *http.Request) (*http.Response, error) {
+ t.Logf("curl -X %s -H'Host: %s' %s", req.Method, req.Host, req.URL)
return InsecureHTTPSClient.Do(req)
}