This is an automated email from the ASF dual-hosted git repository.

srijeet0406 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new c722520f50 fixed multiple cookies (#6752)
c722520f50 is described below

commit c722520f50618fea4c84814c8beb80c5814c4974
Author: mattjackson220 <[email protected]>
AuthorDate: Wed Apr 20 15:07:53 2022 -0600

    fixed multiple cookies (#6752)
---
 traffic_ops/traffic_ops_golang/routing/routing.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/traffic_ops/traffic_ops_golang/routing/routing.go 
b/traffic_ops/traffic_ops_golang/routing/routing.go
index ca19d830cf..3031e1c209 100644
--- a/traffic_ops/traffic_ops_golang/routing/routing.go
+++ b/traffic_ops/traffic_ops_golang/routing/routing.go
@@ -166,13 +166,13 @@ func CreateRouteMap(rs []Route, disabledRouteIDs []int, 
perlHandler http.Handler
                versionI := indexOfApiVersion(versions, r.Version)
                nextMajorVer := r.Version.Major + 1
                _, isDisabledRoute := disabledRoutes[r.ID]
+               r.SetMiddleware(authBase, requestTimeout)
                for _, version := range versions[versionI:] {
                        if version.Major >= nextMajorVer {
                                break
                        }
                        vstr := strconv.FormatUint(version.Major, 10) + "." + 
strconv.FormatUint(version.Minor, 10)
                        path := RoutePrefix + "/" + vstr + "/" + r.Path
-                       r.SetMiddleware(authBase, requestTimeout)
 
                        if isDisabledRoute {
                                m[r.Method] = append(m[r.Method], 
PathHandler{Path: path, Handler: middleware.WrapAccessLog(authBase.Secret, 
middleware.DisabledRouteHandler()), ID: r.ID})

Reply via email to