fix(server): Fix response content manipulation for HTML files with injectReload

This commit is contained in:
2025-01-28 10:53:42 +01:00
parent 4f7b2888ab
commit c7dca75827
3 changed files with 10 additions and 3 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## 2025-01-28 - 3.0.55 - fix(server)
Fix response content manipulation for HTML files with injectReload
- Moved fileString declaration inside HTML file handling block to prevent unnecessary string conversion for non-HTML files.
- Corrected responseContent assignment to ensure modified HTML strings are converted back to Buffer format.
## 2025-01-28 - 3.0.54 - fix(servertools)
Fixed an issue with compression results handling in HandlerStatic where content was always being written even if not compressed.