TUN-2451: Log inavlid path

This commit is contained in:
Chung-Ting Huang 2019-10-30 12:18:30 -05:00
parent e9a8c9850f
commit fa841fc89a
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ func H2RequestHeadersToH1Request(h2 []h2mux.Header, h1 *http.Request) error {
resolved := h1.URL.ResolveReference(u)
// prevent escaping base URL
if !strings.HasPrefix(resolved.String(), h1.URL.String()) {
return fmt.Errorf("invalid path")
return fmt.Errorf("invalid path %s", header.Value)
}
h1.URL = resolved
case "content-length":