[v3] Ensure the window name is passed as header to AssetFileServer (#4687)

* Add window name header when making webview requests

* Add changelog item

* Update PR no in changelog entry

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
Caleb Jasik 2025-12-09 23:22:28 -06:00 committed by GitHub
commit 89f9365c3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,6 @@
# Unreleased Changes
<!--
<!--
This file is used to collect changelog entries for the next v3-alpha release.
Add your changes under the appropriate sections below.
@ -23,6 +23,7 @@ After processing, the content will be moved to the main changelog and this file
## Fixed
<!-- Bug fixes -->
- Added missing window name to request headers, so it can be logged with the window ID by @jasikpark in [#4687](https://github.com/wailsapp/wails/pull/4687)
## Deprecated
<!-- Soon-to-be removed features -->

View file

@ -304,6 +304,7 @@ func (r *webViewAssetRequest) Header() (http.Header, error) {
hh := h.Clone()
hh.Set(webViewRequestHeaderWindowId, strconv.FormatUint(uint64(r.windowId), 10))
hh.Set(webViewRequestHeaderWindowName, r.windowName)
return hh, nil
}