mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 14:57:06 +00:00
This commit is contained in:
parent
0fa0fa4ccf
commit
2d2fd6abe2
5
.changes/core-android-proxy-method.md
Normal file
5
.changes/core-android-proxy-method.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
'tauri': 'patch'
|
||||
---
|
||||
|
||||
Use correct HTTP method when making requests to the proxied server on mobile.
|
||||
@ -751,7 +751,10 @@ impl<R: Runtime> WindowManager<R> {
|
||||
{
|
||||
client_builder = client_builder.danger_accept_invalid_certs(true);
|
||||
}
|
||||
let mut proxy_builder = client_builder.build().unwrap().get(&url);
|
||||
let mut proxy_builder = client_builder
|
||||
.build()
|
||||
.unwrap()
|
||||
.request(request.method().clone(), &url);
|
||||
for (name, value) in request.headers() {
|
||||
proxy_builder = proxy_builder.header(name, value);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user