Skip to content

Commit

Permalink
change hardcoded boolean variable (#5819)
Browse files Browse the repository at this point in the history
  • Loading branch information
srijeet0406 committed May 6, 2021
1 parent b80e231 commit 8892bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions traffic_ops/v3-client/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit 8892bef

Please sign in to comment.