5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 21:10:54 +08:00
wails/v2/pkg/assetserver
stffabi 496461920f
[v2] DevServer improvements and fixes (#2664)
* [assetserver, darwin] Fix copying request headers by using strdup

* [assetserver, linux] Fake some basic http headers for legacy webkit2 versions to support proxying requests to other servers

This fixes the devserver on v2 for newer vite versions that use the custom
scheme.

* [v2, windows] 304 responses are going to hang the WebView2 so prevent them by removing cache related headers in the request.

* [v2, dev] Now uses the custom schemes `wails://` on macOS and Linux for all Vite versions.

Prevent missing reload after fast multiple savings on Linux and Windows.
2023-05-16 09:35:48 +02:00
..
testdata Refactor assetserver into pkg (#2260) 2023-01-08 11:25:21 +01:00
webview [v2] DevServer improvements and fixes (#2664) 2023-05-16 09:35:48 +02:00
assethandler_external.go [v2, dev] Use custom schemes for in-app dev mode (#2610) 2023-04-20 12:37:40 +02:00
assethandler.go [assetHandler] Allow middleware to set the content-type for an assets file (#2286) 2023-01-16 21:05:25 +11:00
assetserver_dev.go [v2] DevServer improvements and fixes (#2664) 2023-05-16 09:35:48 +02:00
assetserver_legacy.go [assetServer] Improve release/close handling of webview requests (#2612) 2023-04-20 12:06:37 +02:00
assetserver_webview.go [assetServer] Improve release/close handling of webview requests (#2612) 2023-04-20 12:06:37 +02:00
assetserver.go [v2] DevServer improvements and fixes (#2664) 2023-05-16 09:35:48 +02:00
common.go Refactor assetserver into pkg (#2260) 2023-01-08 11:25:21 +01:00
content_type_sniffer.go Refactor assetserver into pkg (#2260) 2023-01-08 11:25:21 +01:00
defaultindex.html Refactor assetserver into pkg (#2260) 2023-01-08 11:25:21 +01:00
fs.go Refactor assetserver into pkg (#2260) 2023-01-08 11:25:21 +01:00
mimecache_test.go [assetserver] Add more builtin mimetypes by extension (#2391) 2023-02-21 18:20:01 +11:00
mimecache.go [assetserver] Add more builtin mimetypes by extension (#2391) 2023-02-21 18:20:01 +11:00
ringqueue.go [assetServer, darwin] Use AssetServer native WKWebView request handling (#2283) 2023-01-16 13:02:18 +01:00