Browse Source

Set an HTTP User-Agent

default_compile_flags
vector-of-bool 3 years ago
parent
commit
0a78a632ea
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/dds/util/http/pool.cpp

+ 1
- 0
src/dds/util/http/pool.cpp View File

@@ -113,6 +113,7 @@ struct http_client_impl {
{"Content-Length", "0"},
{"TE", "gzip, chunked"},
{"Connection", "keep-alive"},
{"User-Agent", "dds 0.1.0-alpha.6"},
};
if (!params.prior_etag.empty()) {
headers.push_back({"If-None-Match", params.prior_etag});

Loading…
Cancel
Save