aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/http/proxy_item.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-19 00:10:22 +0900
committernsfisis <nsfisis@gmail.com>2026-05-19 00:11:03 +0900
commitc839244d8d09f3036ebfee8eef7eb6b147e593ab (patch)
treefe48c94f2c2e62468beef5ff1a8f3cff6adeef4f /crates/shirabe/src/util/http/proxy_item.rs
parent48839250146b217e2756ed3c0e624fd341b54d6c (diff)
downloadphp-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.tar.gz
php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.tar.zst
php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.zip
fix(compile): fix various compile errors
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/util/http/proxy_item.rs')
-rw-r--r--crates/shirabe/src/util/http/proxy_item.rs18
1 files changed, 6 insertions, 12 deletions
diff --git a/crates/shirabe/src/util/http/proxy_item.rs b/crates/shirabe/src/util/http/proxy_item.rs
index 0e30c44..db71476 100644
--- a/crates/shirabe/src/util/http/proxy_item.rs
+++ b/crates/shirabe/src/util/http/proxy_item.rs
@@ -132,28 +132,22 @@ impl ProxyItem {
}
pub fn to_request_proxy(&self, scheme: String) -> RequestProxy {
- let mut http_options: IndexMap<String, Box<PhpMixed>> = IndexMap::new();
+ let mut http_options: IndexMap<String, PhpMixed> = IndexMap::new();
http_options.insert(
"proxy".to_string(),
- Box::new(PhpMixed::String(self.options_proxy.clone())),
+ PhpMixed::String(self.options_proxy.clone()),
);
if let Some(ref auth) = self.options_auth {
- http_options.insert(
- "header".to_string(),
- Box::new(PhpMixed::String(auth.clone())),
- );
+ http_options.insert("header".to_string(), PhpMixed::String(auth.clone()));
}
if scheme == "http" {
- http_options.insert(
- "request_fulluri".to_string(),
- Box::new(PhpMixed::Bool(true)),
- );
+ http_options.insert("request_fulluri".to_string(), PhpMixed::Bool(true));
}
- let mut options: IndexMap<String, Box<PhpMixed>> = IndexMap::new();
- options.insert("http".to_string(), Box::new(PhpMixed::Array(http_options)));
+ let mut options: IndexMap<String, IndexMap<String, PhpMixed>> = IndexMap::new();
+ options.insert("http".to_string(), http_options);
RequestProxy::new(
Some(self.url.clone()),