[v2] Fix formatting of some error messages (#1665)

This commit is contained in:
stffabi
2022-07-27 19:20:30 +10:00
committed by GitHub
parent b9882eabe2
commit 229d36207c
2 changed files with 2 additions and 2 deletions
@@ -326,7 +326,7 @@ func (f *Frontend) processRequest(r *request) {
req.Body.Close()
}
return nil, fmt.Errorf("Expected host '%d' in request, but was '%s'", f.startURL.Host, req.URL.Host)
return nil, fmt.Errorf("Expected host '%s' in request, but was '%s'", f.startURL.Host, req.URL.Host)
}
return req, nil
},
@@ -355,7 +355,7 @@ func (f *Frontend) processRequest(request unsafe.Pointer) {
req.Body.Close()
}
return nil, fmt.Errorf("Expected host '%d' in request, but was '%s'", f.startURL.Host, req.URL.Host)
return nil, fmt.Errorf("Expected host '%s' in request, but was '%s'", f.startURL.Host, req.URL.Host)
}
return req, nil