diff options
| author | Raul Benencia <46945030+raul-te@users.noreply.github.com> | 2023-01-04 16:16:10 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-04 16:16:10 -0800 |
| commit | 5278665a4dab4d90c7aac56aa76ce2c24705da8c (patch) | |
| tree | 070fa7e79bb7d031797ed3c60d6f6745ee4b8689 /vendor/github.com/gorilla/mux/test_helpers.go | |
| parent | 1c79728984af1b0b065ce5879581f41fa9f03da3 (diff) | |
build: update dependencies
Diffstat (limited to 'vendor/github.com/gorilla/mux/test_helpers.go')
| -rw-r--r-- | vendor/github.com/gorilla/mux/test_helpers.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/github.com/gorilla/mux/test_helpers.go b/vendor/github.com/gorilla/mux/test_helpers.go index 8b2c4a4..5f5c496 100644 --- a/vendor/github.com/gorilla/mux/test_helpers.go +++ b/vendor/github.com/gorilla/mux/test_helpers.go @@ -7,12 +7,13 @@ package mux import "net/http" // SetURLVars sets the URL variables for the given request, to be accessed via -// mux.Vars for testing route behaviour. +// mux.Vars for testing route behaviour. Arguments are not modified, a shallow +// copy is returned. // // This API should only be used for testing purposes; it provides a way to // inject variables into the request context. Alternatively, URL variables // can be set by making a route that captures the required variables, // starting a server and sending the request to that server. func SetURLVars(r *http.Request, val map[string]string) *http.Request { - return setVars(r, val) + return requestWithVars(r, val) } |
