Adding a UserAgent header to the http downloader
[?]
Jun 3, 2021, 10:08 AM
AI73GKAO5QBPR6YGW7H5UNZYAEGYGIHAFO6DM2DWCPMVYLHE547QCDependencies
- [2]
GFED4ORAImprove error handling for nonexistent channels - [3]
IQ4FCHPZHTTP connections: pooling + retry on error - [4]
KI2AFWOSFixing a panic in pull - [5]
JRENVH5DReqwest 0.11 - [6]
BVVMTOYWProper renaming of changes downloaded over HTTP - [7]
VBMXB443Retrying if the HTTP connection drops while reading the body - [8]
MU5GSJAWPartial push and pull (WARNING: breaks the existing protocol) - [9]
TPEH2XNB1.0.0-alpha.28, with Tokio 1.0 - [10]
GYXIF25TProper parsing of URLs - [*]
FBXYP7QMForgot to add remote::http - [*]
367UBQ6KForwarding SSH stderr, and progress bar for push
Change contents
- edit in pijul/src/remote/http.rs at line 9
const USER_AGENT: &str = concat!("pijul-", clap::crate_version!()); - replacement in pijul/src/remote/http.rs at line 34
let mut res = if let Ok(res) = client.get(&url).query(&[("change", &c32)]).send().await {let mut res = if let Ok(res) = client.get(&url).query(&[("change", &c32)]).header(reqwest::header::USER_AGENT, USER_AGENT).send().await{ - edit in pijul/src/remote/http.rs at line 159[13.1727][13.1727]
.header(reqwest::header::USER_AGENT, USER_AGENT) - replacement in pijul/src/remote/http.rs at line 190
let res = self.client.get(url).query(&query).send().await?;let res = self.client.get(url).query(&query).header(reqwest::header::USER_AGENT, USER_AGENT).send().await?; - replacement in pijul/src/remote/http.rs at line 246
let res = self.client.get(&url).query(&q).send().await?;let res = self.client.get(&url).query(&q).header(reqwest::header::USER_AGENT, USER_AGENT).send().await?; - replacement in pijul/src/remote/http.rs at line 300
let res = res.send().await?;let res = res.header(reqwest::header::USER_AGENT, USER_AGENT).send().await?;