ep: Fix header for target patches (#57598)

Previously, we were always copying the _first_ header of the source
patch, which is wrong for 99% of time.

Release Notes:

- N/A
a74a96e25dOleksiy Syvokon committed on 5/24/2026, 5:22:48 PM· committed by GitHubparent8bfe320
1 file changedLine totals unavailable