mirror of
https://github.com/TeamPiped/piped-rust-sdk.git
synced 2024-08-14 23:56:06 +00:00
Update user-agent.
This commit is contained in:
parent
784a837762
commit
057e32b6aa
2 changed files with 2 additions and 5 deletions
|
@ -9,7 +9,7 @@ pub struct PipedClient {
|
|||
pub instance: String,
|
||||
}
|
||||
|
||||
const USER_AGENT: &str = "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0";
|
||||
const USER_AGENT: &str = concat!("piped-rust-sdk/{}", env!("CARGO_PKG_VERSION"));
|
||||
|
||||
impl PipedClient {
|
||||
pub fn new<S: AsRef<str>>(httpclient: &Client, instance: S) -> PipedClient {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue