Skip to content

Commit

Permalink
fix(sdk): add user agent in rust sdk
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Coenen <[email protected]>
  • Loading branch information
bnjjj authored and fsamin committed Feb 25, 2019
1 parent 4fad563 commit e7bb8d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/rust/sdk-cds/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ impl<'a> Client<'a> {
let mut resp_http = HttpClient::new()
.request(reqwest::Method::from_bytes(method.as_bytes())?, &url)
.header(reqwest::header::CONTENT_TYPE, "application/json")
.header(reqwest::header::USER_AGENT, "CDS/sdk")
.header(SESSION_TOKEN_HEADER, self.token)
.basic_auth(self.username, Some(self.token))
.json(&body)
Expand Down

0 comments on commit e7bb8d0

Please sign in to comment.