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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-12-10 15:01:50 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-12-10 15:01:50 +0300
commit2ad3c3a211fa7ca0109e7cc5caf1d9f0047b77ea (patch)
treec056df95a09935155438e1b63d18cfb85a433309
parent746d148c9f687cceb9760bb5b34222b4eb28a739 (diff)
Use the request method that we pass as an argument
-rw-r--r--internal/source/gitlab/client/client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/source/gitlab/client/client.go b/internal/source/gitlab/client/client.go
index 04cdf91c..9bf4bf32 100644
--- a/internal/source/gitlab/client/client.go
+++ b/internal/source/gitlab/client/client.go
@@ -124,7 +124,7 @@ func (gc *Client) endpoint(path string, params url.Values) (*url.URL, error) {
}
func (gc *Client) request(ctx context.Context, method string, endpoint *url.URL) (*http.Request, error) {
- req, err := http.NewRequest("GET", endpoint.String(), nil)
+ req, err := http.NewRequest(method, endpoint.String(), nil)
if err != nil {
return nil, err
}