You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh I see! That's a good idea for a feature to add. Do you happen to have a PR I could review by any chance?
Regarding the custom filename, this feature already exists. You can look at the Download::new() method. It allows you to pass a custom name to the download.
2moe
changed the title
Custom Http Headers & filename
Custom Http Headers
Jan 15, 2023
Problem
Some websites restrict the UA, so if it is an invalid UA (null UA or IE), then it will deny service.
So I need the ua header.
When I used
trauma::downloader::DownloaderBuilder
, I found that I could not add headers directly.trauma/src/downloader.rs
Lines 156 to 161 in a5f5bb7
It is not difficult to add the header.
But I had to modify the trauma lib, instead of using
DownloaderBuilder::new().headers(...)
.Incidentally, I think it should also support custom filename, instead of relying entirely on
form_urlencoded
to automatically parsetrauma/src/downloader.rs
Lines 27 to 38 in a5f5bb7
The text was updated successfully, but these errors were encountered: