mitchell852 closed pull request #3172: Fix TO cdns/dnsseckeys empty response to 
{}
URL: https://github.com/apache/trafficcontrol/pull/3172
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/traffic_ops/traffic_ops_golang/cdn/dnssec.go 
b/traffic_ops/traffic_ops_golang/cdn/dnssec.go
index 446ef5a7c..52f3ade60 100644
--- a/traffic_ops/traffic_ops_golang/cdn/dnssec.go
+++ b/traffic_ops/traffic_ops_golang/cdn/dnssec.go
@@ -79,7 +79,7 @@ func GetDNSSECKeys(w http.ResponseWriter, r *http.Request) {
        }
        if !keysExist {
                // TODO emulates Perl; change to error, 404?
-               api.WriteRespAlert(w, r, tc.SuccessLevel, " - Dnssec keys for 
"+cdnName+" could not be found. ") // emulates Perl
+               api.WriteRespAlertObj(w, r, tc.SuccessLevel, " - Dnssec keys 
for "+cdnName+" could not be found. ", struct{}{}) // emulates Perl
                return
        }
 
@@ -113,7 +113,7 @@ func GetDNSSECKeysV11(w http.ResponseWriter, r 
*http.Request) {
        }
        if !keysExist {
                // TODO emulates Perl; change to error, 404?
-               api.WriteRespAlert(w, r, tc.SuccessLevel, " - Dnssec keys for 
"+cdnName+" could not be found. ") // emulates Perl
+               api.WriteRespAlertObj(w, r, tc.SuccessLevel, " - Dnssec keys 
for "+cdnName+" could not be found. ", struct{}{}) // emulates Perl
                return
        }
        api.WriteResp(w, r, riakKeys)


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to