wryview 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wryview-0.3.1 → wryview-0.3.2}/Cargo.lock +1 -1
- {wryview-0.3.1 → wryview-0.3.2}/Cargo.toml +1 -1
- {wryview-0.3.1 → wryview-0.3.2}/PKG-INFO +1 -1
- {wryview-0.3.1 → wryview-0.3.2}/pyproject.toml +1 -1
- {wryview-0.3.1 → wryview-0.3.2}/python/wryview/__init__.py +1 -1
- {wryview-0.3.1 → wryview-0.3.2}/src/lib.rs +7 -1
- {wryview-0.3.1 → wryview-0.3.2}/.github/workflows/publish-to-pypi.yml +0 -0
- {wryview-0.3.1 → wryview-0.3.2}/.gitignore +0 -0
- {wryview-0.3.1 → wryview-0.3.2}/.vscode/settings.json +0 -0
- {wryview-0.3.1 → wryview-0.3.2}/LICENSE +0 -0
- {wryview-0.3.1 → wryview-0.3.2}/README.md +0 -0
- {wryview-0.3.1 → wryview-0.3.2}/README_ZH.md +0 -0
- {wryview-0.3.1 → wryview-0.3.2}/python/wryview/_core.pyi +0 -0
|
@@ -9,7 +9,7 @@ authors = [
|
|
|
9
9
|
]
|
|
10
10
|
description = "Comprehensive Python binding for wry — cross-platform embeddable webview, no event loop required."
|
|
11
11
|
readme = "README.md"
|
|
12
|
-
version = "0.3.
|
|
12
|
+
version = "0.3.2"
|
|
13
13
|
requires-python = ">=3.10"
|
|
14
14
|
license = "MPL-2.0"
|
|
15
15
|
license-files = ["LICENSE"]
|
|
@@ -332,7 +332,13 @@ impl WebView {
|
|
|
332
332
|
for (k, v) in &resp_headers {
|
|
333
333
|
builder = builder.header(k.as_str(), v.as_str());
|
|
334
334
|
}
|
|
335
|
-
let
|
|
335
|
+
let response =
|
|
336
|
+
builder.body(std::borrow::Cow::Owned(resp_body)).unwrap();
|
|
337
|
+
Python::attach(|py| {
|
|
338
|
+
py.detach(move || {
|
|
339
|
+
let _ = r.respond(response);
|
|
340
|
+
});
|
|
341
|
+
});
|
|
336
342
|
}
|
|
337
343
|
Ok::<_, pyo3::PyErr>(unsafe { Python::assume_attached() }.None())
|
|
338
344
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|