Skip to content

Commit

Permalink
chore: removed support for pre go1.8
Browse files Browse the repository at this point in the history
Now that the go.mod requirement is to support at least go1.19, we may
remove support for older versions of go.

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
  • Loading branch information
fredbi committed Dec 17, 2023
1 parent 442694d commit bca195f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
10 changes: 0 additions & 10 deletions middleware/go18.go

This file was deleted.

9 changes: 0 additions & 9 deletions middleware/pre_go18.go

This file was deleted.

3 changes: 2 additions & 1 deletion middleware/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package middleware
import (
"fmt"
"net/http"
"net/url"
fpath "path"
"regexp"
"strings"
Expand Down Expand Up @@ -334,7 +335,7 @@ func (d *defaultRouter) Lookup(method, path string) (*MatchedRoute, bool) {
debugLog("found a route for %s %s with %d parameters", method, path, len(entry.Parameters))
var params RouteParams
for _, p := range rp {
v, err := pathUnescape(p.Value)
v, err := url.PathUnescape(p.Value)
if err != nil {
debugLog("failed to escape %q: %v", p.Value, err)
v = p.Value
Expand Down

0 comments on commit bca195f

Please sign in to comment.