MDL-69779 core: Improved the X-Redirect-By header when debugging is on