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

zrhoffman 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 730d842  Changes second argument to pointer (#5794)
730d842 is described below

commit 730d842d07d736c344adad9f5081ec30e6790ea9
Author: Alejandra Bricio <[email protected]>
AuthorDate: Wed Apr 28 15:22:07 2021 -0500

    Changes second argument to pointer (#5794)
---
 lib/go-tc/deliveryservice_requests.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/go-tc/deliveryservice_requests.go 
b/lib/go-tc/deliveryservice_requests.go
index b600d6b..4f1b406 100644
--- a/lib/go-tc/deliveryservice_requests.go
+++ b/lib/go-tc/deliveryservice_requests.go
@@ -373,7 +373,7 @@ func (o *OriginHeaders) UnmarshalJSON(data []byte) error {
        }
 
        headers := []string{}
-       if err := json.Unmarshal(data, headers); err == nil {
+       if err := json.Unmarshal(data, &headers); err == nil {
                *o = OriginHeaders(headers)
                return nil
        }

Reply via email to