emilk / ehttp

Minimal Rust HTTP client for both native and WASM
Apache License 2.0
323 stars 30 forks source link

Add ehttp user agent to headers #56

Closed MathiasYde closed 4 months ago

MathiasYde commented 5 months ago

Simply just added a hard-coded User-Agent string of "ehttp" to the HTTP methods in types.rs

emilk commented 4 months ago

This means there is no easy way for users to set their own User-Agent when using these helpers though

emilk commented 4 months ago

I don't think it is common for a library to add a User-Agent like this. The User-Agent should be the application IMHO, not the name of a mid-level library.