diff options
| author | A Farzat <a@farzat.xyz> | 2026-03-09 08:15:20 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2026-03-09 08:15:20 +0300 |
| commit | 757c0ff90a2d6cc41c77c26050c50b1b9ceecbec (patch) | |
| tree | 6d489020be747d5382843a41cc2170164164b90a /src | |
| parent | cefcaec0ceb322e021caea2155c38426811aae2d (diff) | |
| download | oreilly-epub-757c0ff90a2d6cc41c77c26050c50b1b9ceecbec.tar.gz oreilly-epub-757c0ff90a2d6cc41c77c26050c50b1b9ceecbec.zip | |
Fix formatting
For future reference, the User-Agent was obtained from
https://hasdata.com/blog/user-agents-for-web-scraping
Diffstat (limited to 'src')
| -rw-r--r-- | src/http_client.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http_client.rs b/src/http_client.rs index bc929bc..3d5a926 100644 --- a/src/http_client.rs +++ b/src/http_client.rs @@ -26,7 +26,9 @@ pub fn build_authenticated_client(cookies_path: &PathBuf) -> Result<Client> { // Build the client with the cookie provider and a standard User-Agent. let client = Client::builder() .cookie_provider(jar) - .user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0") + .user_agent( + "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0", + ) .build() .context("Failed to build the HTTP client")?; |
