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

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

Loading…
Cancel
Save