tauri/core/tauri-utils/src
Amr Bashir 4c239729c3
fix(core): fix raw invoke body for isolation pattern (#10167)
* fix(core): fix raw invoke body for isolation pattern

The `isolation` pattern requests are made using JSON but the payload could be raw bytes, so we send the original `Content-Type`  from frontend and make sure to deserialize the payload using that one instead of `Content-Type` from request headers

* clippy

* disable plist embed in generate_context in tests

* change file

* docs [skip ci]

* move unused_variables [skip ci]

* last commit regression [skip ci]

* fix test

* add example, do not text encode raw request

* check type instead of contenttype

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-07-12 09:52:53 -03:00
..
acl style: simplify string formatting (#10259) 2024-07-12 13:33:14 +03:00
config chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
pattern fix(core): fix raw invoke body for isolation pattern (#10167) 2024-07-12 09:52:53 -03:00
platform fix(tauri-runtime-wry): window inner size regression on macOS, closes #9236 (#9276) 2024-03-26 11:38:57 -03:00
assets.rs refactor(core): add setup() to the Assets trait (#9147) 2024-03-11 13:38:32 -03:00
build.rs feat(plugin): add option to use a Xcode project for iOS (#9843) 2024-05-24 08:23:41 -03:00
config.rs enhance!(nsis): use !ifmacrodef for installer hooks (#10177) 2024-07-03 05:48:22 +03:00
html.rs feat(core): use a strict CSP on the isolation iframe (#9086) 2024-03-05 14:20:17 -03:00
io.rs chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
lib.rs refactor(cli&bundler): avoid renaming main executable and preserve cargo name (#9375) 2024-05-28 13:50:41 -03:00
mime_type.rs chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
platform.rs refactor(cli&bundler): avoid renaming main executable and preserve cargo name (#9375) 2024-05-28 13:50:41 -03:00
plugin.rs feat(core): allow defining global API script on plugin build (#9156) 2024-03-12 12:01:13 -03:00
resources.rs chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
tokens.rs chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00