Saddled with a four-game losing streak and facing the possibility of being swept by the Mets a four-game series for the first time since 1989, the Braves had the right guy on the mound Thursday in veteran Aaron Harang.

And who could’ve imagined saying that when the Braves signed him off the scrap heap in the last week of spring training?

The Braves scored three runs in the first three innings, and Harang did most of the heavy lifting the rest of the way in a 3-1 win against the Mets in a series finale at Citi Field.

Harang (9-6) ran his winning streak to four consecutive starts, allowing four hits, four walks and one run with two strikeouts in seven innings. He has a 0.90 ERA in three starts against the Mets this season, with six hits and two runs allowed in 20 innings.

After Jordan Walden faced four batters in the eighth and gave up two singles, Craig Kimbrel came in to collect his fourth career four-out save and second this season. Kimbrel struck out pinch-hitter Kirk Nieuwenhuis with two on to end the eighth inning, then retired the Mets in order in the ninth for his 28th save in 32 opportunities.

Harang had just 59 strikes in 104 pitches, but appeared to throw most of those pitches precisely with a purpose in mind.

He gave up gave up nine runs in 4 2/3 innings at Miami on April 30, but Harang has a 2.06 ERA and eight quality starts in his other eight road games, including seven starts with two earned runs or fewer in six or more innings.

The Braves were just 5-for-38 with runners in scoring position during their four-game losing streak, and struggled again in those situations early Thursday despite jumping out to a 3-0 lead with two runs in the first inning and one in the third.