Skip to content

Commit 1768290

Browse files
authored
don't set token as sensitive header value
GH REST API doesn't send to be recognizing the token in field test.
1 parent 2c2a3a1 commit 1768290

File tree

1 file changed

+2
-2
lines changed
  • cpp-linter/src/rest_api/github

1 file changed

+2
-2
lines changed

cpp-linter/src/rest_api/github/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ impl RestApiClient for GithubApiClient {
106106
);
107107
// headers.insert("User-Agent", USER_AGENT.parse().unwrap());
108108
if let Ok(token) = env::var("GITHUB_TOKEN") {
109-
let mut val = HeaderValue::from_str(token.as_str())?;
110-
val.set_sensitive(true);
109+
let /*mut*/ val = HeaderValue::from_str(token.as_str())?;
110+
//val.set_sensitive(true);
111111
headers.insert(AUTHORIZATION, val);
112112
}
113113
Ok(headers)

0 commit comments

Comments
 (0)