Skip to content

Commit e7b321b

Browse files
Add user-agent header to local downloads too
1 parent 9963e32 commit e7b321b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/ci/actions.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,12 @@ impl CiPlatform for Client {
254254
}
255255

256256
fn authenticate_request(&self, request: RequestBuilder) -> RequestBuilder {
257-
request.header(
258-
reqwest::header::AUTHORIZATION,
259-
format!("token {}", self.token),
260-
)
257+
request
258+
.header(
259+
reqwest::header::AUTHORIZATION,
260+
format!("token {}", self.token),
261+
)
262+
.header(reqwest::header::USER_AGENT, format!("rust-log-analyzer"))
261263
}
262264

263265
fn is_build_outcome_unreliable(&self) -> bool {

0 commit comments

Comments
 (0)