We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e8f3de commit ebe6b18Copy full SHA for ebe6b18
cpp-linter/src/rest_api/github/mod.rs
@@ -100,6 +100,10 @@ impl RestApiClient for GithubApiClient {
100
"Accept",
101
HeaderValue::from_str("application/vnd.github.raw+json")?,
102
);
103
+ headers.insert(
104
+ "User-Agent",
105
+ HeaderValue::from_str("cpp-linter/cpp_linter_rs")?,
106
+ );
107
// headers.insert("User-Agent", USER_AGENT.parse().unwrap());
108
if let Ok(token) = env::var("GITHUB_TOKEN") {
109
let mut val = HeaderValue::from_str(token.as_str())?;
0 commit comments