Add back response headers to debug log

Also added an integration test to ensure we don't remove
this feature in the future.

cc @kyleknap @danielgtaylor