rob05c commented on issue #2857: Fixes TO cdn/federations to return [] not null
URL: https://github.com/apache/trafficcontrol/pull/2857#issuecomment-444952836
 
 
   >api/1.2/cdns/cdn-test/federations?id=5
   >should return an empty response, not a 404
   
   So, I tested Perl to see what it does. It looks like Perl doesn't support 
query parameters. Perl returns a `[]` for any `?id=`, even ids that exist. But, 
Perl does return a `404` for `/federations/42` for an ID that doesn't exist. 
Since the query param is new in Go, I think it should return the same response 
as the path param, `404`.

----------------------------------------------------------------
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