You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by oc...@apache.org on 2021/05/06 21:38:51 UTC

[trafficcontrol] branch 5.1.x updated: change hardcoded boolean variable (#5819)

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

ocket8888 pushed a commit to branch 5.1.x
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/5.1.x by this push:
     new 8892bef  change hardcoded boolean variable (#5819)
8892bef is described below

commit 8892beff94f6bf699ee95bc1a66afa09775796f0
Author: Srijeet Chatterjee <30...@users.noreply.github.com>
AuthorDate: Thu May 6 15:38:34 2021 -0600

    change hardcoded boolean variable (#5819)
---
 traffic_ops/v3-client/session.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/traffic_ops/v3-client/session.go b/traffic_ops/v3-client/session.go
index 390cc3c..593bf89 100644
--- a/traffic_ops/v3-client/session.go
+++ b/traffic_ops/v3-client/session.go
@@ -488,7 +488,7 @@ func reqLogin(reqF ReqF) ReqF {
 func reqFallback(reqF ReqF) ReqF {
 	var fallbackFunc func(to *Session, method string, path string, body interface{}, header http.Header, response interface{}, raw bool) (ReqInf, error)
 	fallbackFunc = func(to *Session, method string, path string, body interface{}, header http.Header, response interface{}, raw bool) (ReqInf, error) {
-		inf, err := reqF(to, method, path, body, header, response, false)
+		inf, err := reqF(to, method, path, body, header, response, raw)
 		if err == nil {
 			return inf, err
 		}
@@ -512,7 +512,7 @@ func reqFallback(reqF ReqF) ReqF {
 		}
 		to.latestSupportedAPI = apiVersions[nextAPIVerI]
 
-		return fallbackFunc(to, method, path, body, header, response, false)
+		return fallbackFunc(to, method, path, body, header, response, raw)
 	}
 	return fallbackFunc
 }