Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When generating the pattern for a map entry to match a route host and path, make sure the pattern allows for a trailing dot in the host name. RFC 7230, section 5.4, specifies that the HTTP "host" header value includes the URI host as defined in RFC 3986, section 3.2.2, which indicates that a trailing dot is permitted. Note that the same treatment is not required for entries in the certificate map because RFC 3546, section 3.1, specifies that the server name in a TLS client hello message does *not* have a trailing dot. This commit fixes bug 1878319. https://bugzilla.redhat.com/show_bug.cgi?id=1878319 * pkg/router/template/util/util.go (GenerateRouteRegexp): Match an optional trailing dot in the host name. * pkg/router/template/util/util_test.go (TestGenerateRouteRegexp): Verify that the trailing dot is permitted.
- Loading branch information