We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3959e4 commit 701e462Copy full SHA for 701e462
docs/source/about/changelog.rst
@@ -26,6 +26,7 @@ Unreleased
26
**Fixed**
27
28
- :pull:`1118` - `module_from_template` is broken with a recent release of `requests`
29
+- :pull:`1131` - `module_from_template` did not work when using Flask backend
30
31
32
v1.0.2
src/py/reactpy/reactpy/backend/flask.py
@@ -165,7 +165,7 @@ def send_assets_dir(path: str = "") -> Any:
165
166
@api_blueprint.route(f"/{MODULES_PATH.name}/<path:path>")
167
def send_modules_dir(path: str = "") -> Any:
168
- return send_file(safe_web_modules_dir_path(path))
+ return send_file(safe_web_modules_dir_path(path), mimetype="text/javascript")
169
170
index_html = read_client_index_html(options)
171
0 commit comments