mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Fix small bugs in assetserver
This commit is contained in:
parent
b249f0d0ce
commit
773bdf8ea2
1 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ func (a *AssetServer) processWebViewRequest(r webview.Request) {
|
|||
uri, _ := r.URL()
|
||||
a.processWebViewRequestInternal(r)
|
||||
if err := r.Close(); err != nil {
|
||||
a.options.Logger.Error("Unable to call close for request for uri '%s'", uri)
|
||||
a.options.Logger.Error("Unable to call close for request for uri.", "uri", uri)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -137,7 +137,7 @@ func (a *AssetServer) processWebViewRequestInternal(r webview.Request) {
|
|||
if req.ContentLength == 0 {
|
||||
req.ContentLength, _ = strconv.ParseInt(req.Header.Get(HeaderContentLength), 10, 64)
|
||||
} else {
|
||||
req.Header.Set(HeaderContentLength, fmt.Sprintf("%a", req.ContentLength))
|
||||
req.Header.Set(HeaderContentLength, fmt.Sprintf("%d", req.ContentLength))
|
||||
}
|
||||
|
||||
if host := req.Header.Get(HeaderHost); host != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue