5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 18:31:39 +08:00
wails/v3/internal/assetserver
Fabio Massaioli d4096868e3
[v3] Fix and optimise assetserver (#4049)
* Fix and optimize content type sniffer

- Minimize copying and buffering
- Ensure it sniffs the full 512-bytes prefix

* Fix assorted warnings

* Cleanup error formatting

- Remove unnecessary formatting calls
- Fix invalid format strings
- Standardise logging calls

* Fix and optimize index fallback method

- Pass through non-404 responses correctly
- Do not buffer original response

* Test content sniffing and index fallback

* Update changelog

* Remove obsolete check

* Add safety checks in sniffer
2025-02-09 00:02:54 +11:00
..
bundledassets BREAKING CHANGE: wml attributes are now prefixed with data- 2025-01-28 07:37:17 +11:00
defaults Event cancellation for standard listeners. 2025-01-27 09:29:22 +11:00
webview [v3] Fix and optimise assetserver (#4049) 2025-02-09 00:02:54 +11:00
asset_fileserver.go [v3] Fix and optimise assetserver (#4049) 2025-02-09 00:02:54 +11:00
assetserver_darwin.go Refactor menu functions and streamline devtools toggle across systems 2024-01-21 20:52:32 +11:00
assetserver_dev.go [v3] Fix and optimise assetserver (#4049) 2025-02-09 00:02:54 +11:00
assetserver_linux.go Bring linux up to date with dev changes 2024-01-21 21:24:30 +11:00
assetserver_production.go Fix default index.html serving. 2024-12-14 11:10:07 +11:00
assetserver_test.go [v3] Fix and optimise assetserver (#4049) 2025-02-09 00:02:54 +11:00
assetserver_webview.go [v3] Fix and optimise assetserver (#4049) 2025-02-09 00:02:54 +11:00
assetserver_windows.go Refactor menu functions and streamline devtools toggle across systems 2024-01-21 20:52:32 +11:00
assetserver.go [v3] Fix and optimise assetserver (#4049) 2025-02-09 00:02:54 +11:00
build_dev.go Fix default index.html serving. 2024-12-14 11:10:07 +11:00
build_production.go Fix build issue 2024-12-15 08:32:43 +11:00
bundled_assetserver.go Add BundledAssetFileServer for bundled /wails/runtime.js. Update examples. 2024-03-17 15:08:30 +11:00
common.go [v3] Fix and optimise assetserver (#4049) 2025-02-09 00:02:54 +11:00
content_type_sniffer.go [v3] Fix and optimise assetserver (#4049) 2025-02-09 00:02:54 +11:00
fallback_response_writer.go [v3] Fix and optimise assetserver (#4049) 2025-02-09 00:02:54 +11:00
fs.go [v3] Fix and optimise assetserver (#4049) 2025-02-09 00:02:54 +11:00
middleware.go Move assetserver to internal 2023-08-14 08:31:55 +10:00
mimecache_test.go Move assetserver to internal 2023-08-14 08:31:55 +10:00
mimecache.go Initial implementation of dev mode. 2024-01-19 21:34:49 +11:00
options.go [v3] Fix and optimise assetserver (#4049) 2025-02-09 00:02:54 +11:00
ringqueue.go Move assetserver to internal 2023-08-14 08:31:55 +10:00