The Dodgers had won four straight to open a five-game series against the Pittsburgh Pirates, who have lost their past five, and now have a chance to extend their longest winning streak of the season to seven games.

“We’ve got to get a little bit better,” said Dodgers catcher Will Venable, who hit a game-winning, solo home run in the eighth inning of Game 6.

“I think we’ve just got to keep our heads up.

We’ve just played better.”

With runners on first and third, reliever David Huff drove in the winning run with a single and left-hander Joe Ross added a two-run single in the ninth.

Pirates manager Clint Hurdle had the bases loaded and called for the game-ending walk after Huff struck out Josh Hader.

But Hurdles strikeout allowed left-handed reliever Kevin Siegrist to score the tying run with his ninth of the year in the fifth inning.

“It was a pretty good strikeout, but I guess it was a little too close,” said Hurdlers catcher Carlos Villanueva.

“He’s a really good hitter and a good runner, but it’s hard to come up with a walk to a guy that’s that good.”

Pirates manager Mike Scioscia said he didn’t have any concerns about the game.

“Our bullpen did a great job of coming out and trying to do their job and trying not to let the inning get away from them,” Scioscias said.

“You know, they did a good job of getting some guys in the box.”

Pirates second baseman Ian Happ had three hits and one RBIs in his first big league action.

He has three home runs and 13 RBIs.

Pirates center fielder Andrelton Simmons had a double, a stolen base and two RBIs, and catcher Jameson Taillon added a pair of singles.

Pirates left fielder Anthony Gose had a pair, two RBI and a run scored.

The Pirates also were without catcher Brian McCann, who has been out since being hit by a pitch while throwing to left-fielder Michael Conforto in the third inning of a 7-3 win at San Diego on Saturday.

The Dodgers have won four of five games against Pittsburgh.

Pittsburgh has won the past two meetings.

Pirates RHP Brad Boxberger (2-2) was shut down after giving up two runs in 6 2/3 innings.

RHP Brett Anderson (2.88 ERA) allowed three runs in three innings.

Pirates C Brett Phillips (2 1/3) gave up three runs on five hits and two walks in 3 2/4 innings.