zrhoffman commented on issue #3965: Traffic Router inconsistent behavior on 
HTTP HEAD requests
URL: https://github.com/apache/trafficcontrol/issues/3965#issuecomment-547179715
 
 
   Most of the API's mappings return a ResponseEntity, which guarantees setting 
`Content-Length` for any status code. The exceptions are in LocationController, 
StatsController, ZonesController (which return `Content-Length` for HEAD but 
not GET), but it looks like we can just use ResponseEntity for those, too. The 
object order in the response seems different, but the structure is the same and 
LocationsTest, and StatsTest, ZonesTest still pass.
   
   The documentation will need to be updated to reflect the change in response 
headers.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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