From a64985c71bbb48652bef1d7a737ff5f7e1ec8fa9 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Thu, 20 Feb 2020 11:01:14 -0600 Subject: enable ci on go binding tests Signed-off-by: Brent Baude --- pkg/bindings/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/bindings/errors.go') diff --git a/pkg/bindings/errors.go b/pkg/bindings/errors.go index 1bcaac3f0..5fa711199 100644 --- a/pkg/bindings/errors.go +++ b/pkg/bindings/errors.go @@ -25,7 +25,7 @@ func (a APIResponse) Process(unmarshalInto interface{}) error { if err != nil { return errors.Wrap(err, "unable to process API response") } - if a.IsSuccess() { + if a.IsSuccess() || a.IsRedirection() { if unmarshalInto != nil { return json.Unmarshal(data, unmarshalInto) } -- cgit v1.2.3-54-g00ecf