Fix, since the url must be absolute so use url.ParseRequestURI to parse and check.