diff options
author | Evan Read <eread@gitlab.com> | 2019-08-01 02:40:01 +0000 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2019-08-01 02:40:01 +0000 |
commit | 0e8dab12d458cd2ec24c9a831e36853d6a797870 (patch) | |
tree | c140cd361a49184bedb84888808be8d9733ae696 /doc | |
parent | 28d95c0ca6cb697d053df15251a4e6b28685b253 (diff) | |
parent | 6d4c7b9fc30d652ca165995a2df4540fd742d960 (diff) | |
download | gitlab-ce-0e8dab12d458cd2ec24c9a831e36853d6a797870.tar.gz |
Merge branch 'patch-30' into 'master'
Docs: Jobs: use curl --location to follow redirects
See merge request gitlab-org/gitlab-ce!31244
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/jobs.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/jobs.md b/doc/api/jobs.md index 0e45ee1a583..2a1c1b5f6f3 100644 --- a/doc/api/jobs.md +++ b/doc/api/jobs.md @@ -491,7 +491,7 @@ Parameters Example request: ```sh -curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/jobs/5/artifacts/some/release/file.pdf" +curl --location --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/jobs/5/artifacts/some/release/file.pdf" ``` Possible response status codes: @@ -526,7 +526,7 @@ Parameters: Example request: ```sh -curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/jobs/artifacts/master/raw/some/release/file.pdf?job=pdf" +curl --location --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/jobs/artifacts/master/raw/some/release/file.pdf?job=pdf" ``` Possible response status codes: @@ -551,7 +551,7 @@ GET /projects/:id/jobs/:job_id/trace | job_id | integer | yes | ID of a job. | ```sh -curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/jobs/8/trace" +curl --location --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/jobs/8/trace" ``` Possible response status codes: |