From 5278665a4dab4d90c7aac56aa76ce2c24705da8c Mon Sep 17 00:00:00 2001 From: Raul Benencia <46945030+raul-te@users.noreply.github.com> Date: Wed, 4 Jan 2023 16:16:10 -0800 Subject: build: update dependencies --- vendor/github.com/gorilla/mux/test_helpers.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vendor/github.com/gorilla/mux/test_helpers.go') 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) } -- cgit v1.2.3