mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 18:59:57 +00:00
TUN-2451: Log inavlid path
This commit is contained in:
@@ -52,7 +52,7 @@ func H2RequestHeadersToH1Request(h2 []h2mux.Header, h1 *http.Request) error {
|
|||||||
resolved := h1.URL.ResolveReference(u)
|
resolved := h1.URL.ResolveReference(u)
|
||||||
// prevent escaping base URL
|
// prevent escaping base URL
|
||||||
if !strings.HasPrefix(resolved.String(), h1.URL.String()) {
|
if !strings.HasPrefix(resolved.String(), h1.URL.String()) {
|
||||||
return fmt.Errorf("invalid path")
|
return fmt.Errorf("invalid path %s", header.Value)
|
||||||
}
|
}
|
||||||
h1.URL = resolved
|
h1.URL = resolved
|
||||||
case "content-length":
|
case "content-length":
|
||||||
|
Reference in New Issue
Block a user