Even better as Ben mentioned is to use male H4 terminal kit:
https://www.ebay.com/itm/191893482825
Best to crimp, solder AND heat-shrink wrap those terminals onto headlight wiring. Then be sure you have correct wire before inserting terminal into connector. Can be difficult to extract to put into different location without damage.
Even for simple jumper, I’ll do it the NASA way.