add the headers correctly on the response (bug 769806)