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