Fix EZP-20890: Headers overriden by LegacyKernelController

# Description
Headers sent by the legacy stack were overriden when generating the response.
This PR, reads all headers and adds them to the response object.

# Tests
Manual tests.