mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-29 22:23:01 +00:00
fix(windows): make pnpm dev:app:win work behind TLS-inspecting proxies (#2449)
This commit is contained in:
+4
-3
@@ -78,10 +78,11 @@ fn build_backend_reqwest_client() -> Result<Client> {
|
||||
);
|
||||
}
|
||||
|
||||
// Force rustls for consistent cross-platform TLS behavior.
|
||||
Client::builder()
|
||||
// Platform-appropriate TLS backend: Windows → schannel (honors the OS
|
||||
// cert store, required for corporate TLS-inspection proxies); macOS /
|
||||
// Linux → rustls. See [`crate::openhuman::tls::tls_client_builder`].
|
||||
crate::openhuman::tls::tls_client_builder()
|
||||
.default_headers(default_headers)
|
||||
.use_rustls_tls()
|
||||
.http1_only()
|
||||
.timeout(Duration::from_secs(120))
|
||||
.connect_timeout(Duration::from_secs(15))
|
||||
|
||||
Reference in New Issue
Block a user