diff options
author | Colin Walters <walters@verbum.org> | 2018-01-10 16:02:59 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-01-11 14:06:16 +0000 |
commit | fdf7e2c560719d7e18f31c90b04a24349c6cc0e2 (patch) | |
tree | 5a6dd8d69d095c55db75914f3790e995f66ab05c /src/libostree/ostree-fetcher-curl.c | |
parent | 0be95ded9914eaa903fe9e5d38cf5c97b4567ac4 (diff) | |
download | ostree-fdf7e2c560719d7e18f31c90b04a24349c6cc0e2.tar.gz |
lib/fetcher: Add version to USER_AGENT string
This came up in allowing Fedora infrastructure to work around a libcurl bug with
HTTP2: https://pagure.io/atomic-wg/issue/405
Closes: https://github.com/ostreedev/ostree/issues/1405
Closes: #1406
Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-fetcher-curl.c')
-rw-r--r-- | src/libostree/ostree-fetcher-curl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libostree/ostree-fetcher-curl.c b/src/libostree/ostree-fetcher-curl.c index 272d609a..2d01257d 100644 --- a/src/libostree/ostree-fetcher-curl.c +++ b/src/libostree/ostree-fetcher-curl.c @@ -714,7 +714,7 @@ initiate_next_curl_request (FetcherRequest *req, curl_easy_setopt (req->easy, CURLOPT_URL, uri); } - curl_easy_setopt (req->easy, CURLOPT_USERAGENT, "ostree "); + curl_easy_setopt (req->easy, CURLOPT_USERAGENT, OSTREE_FETCHER_USERAGENT_STRING); if (self->extra_headers) curl_easy_setopt (req->easy, CURLOPT_HTTPHEADER, self->extra_headers); |