Merge branch v2.10 into v3.0
This commit is contained in:
commit
606281a4a5
20 changed files with 196 additions and 73 deletions
|
@ -333,7 +333,7 @@ func TestRedirectSchemeHandler(t *testing.T) {
|
|||
schemeRegex := `^(https?):\/\/(\[[\w:.]+\]|[\w\._-]+)?(:\d+)?(.*)$`
|
||||
re, _ := regexp.Compile(schemeRegex)
|
||||
|
||||
if re.Match([]byte(test.url)) {
|
||||
if re.MatchString(test.url) {
|
||||
match := re.FindStringSubmatch(test.url)
|
||||
req.RequestURI = match[4]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue