mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
[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:
parent
f4d1a5db5d
commit
89f9365c3d
2 changed files with 3 additions and 1 deletions
|
|
@ -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 -->
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue