Provide user agent when performing HTTP requests (#15470)
Release Notes: - N/A --------- Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan
parent
2a649fa824
commit
fa19bc98ac
@@ -114,7 +114,7 @@ impl App {
|
||||
Self(AppContext::new(
|
||||
current_platform(false),
|
||||
Arc::new(()),
|
||||
http_client::client(None),
|
||||
http_client::client(None, None),
|
||||
))
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ impl App {
|
||||
Self(AppContext::new(
|
||||
current_platform(true),
|
||||
Arc::new(()),
|
||||
http_client::client(None),
|
||||
http_client::client(None, None),
|
||||
))
|
||||
}
|
||||
|
||||
@@ -667,7 +667,7 @@ impl AppContext {
|
||||
}
|
||||
|
||||
/// Updates the http client assigned to GPUI
|
||||
pub fn update_http_client(&mut self, new_client: Arc<dyn HttpClient>) {
|
||||
pub fn set_http_client(&mut self, new_client: Arc<dyn HttpClient>) {
|
||||
self.http_client = new_client;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user