David Pastrnak scored the winner 1:14 into overtime to give the Boston Bruins to a 2-1 victory over the Edmonton Oilers on Wednesday.

Pastrnak was set up for the goal on a pass from David Krejci. He tucked the puck between Oilers goalie Mike Smith's legs for his 43rd goal of the season.

More Images
Boston Bruins defenseman Zdeno Chara (33) and teammate defenseman Charlie McAvoy (73) battle for the puck with Edmonton Oilers' Ryan Nugent-Hopkins (93) during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

David Pastrnak scored the winner 1:14 into overtime to give the Boston Bruins to a 2-1 victory over the Edmonton Oilers on Wednesday.

Boston Bruins goaltender Tuukka Rask (40) makes the save as Edmonton Oilers' Ryan Nugent-Hopkins (93) falls on top of him during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Sam Gagner had a goal for the short-handed Oilers, who are expected to be without Connor McDavid for much of the month because of a leg injury.

Boston Bruins defenseman Brandon Carlo (25) gets his stick in the face of Edmonton Oilers' Gaetan Haas (91) during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

The Oilers tied it on a power play four minutes into the third period as Gagner tipped an Ethan Bear shot up high over Rask for his fifth of the season.

Boston Bruins right wing Chris Wagner (14) is checked by Edmonton Oilers center Gaetan Haas (91) during the first period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason Fransonthe Canadian Press via AP)

UP NEXT

Boston Bruins defenseman Charlie McAvoy (73) and Edmonton Oilers' Ryan Nugent-Hopkins (93) battle for the puck during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins defenseman Charlie McAvoy (73) and Edmonton Oilers' Ryan Nugent-Hopkins (93) battle for the puck during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins left wing Anders Bjork (10) and Edmonton Oilers defenseman Adam Larsson (6) battle for the puck during the first period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins left wing Anders Bjork (10) and Edmonton Oilers defenseman Adam Larsson (6) battle for the puck during the first period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins goaltender Tuukka Rask (40) makes the save as Edmonton Oilers' Alex Chiasson (39) and Boston Bruins defenseman Zdeno Chara (33) battle during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins goaltender Tuukka Rask (40) makes the save as Edmonton Oilers' Alex Chiasson (39) and Boston Bruins defenseman Zdeno Chara (33) battle during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins left wing Brad Marchand (63) gets then pass away as Edmonton Oilers' Alex Chiasson (39) defends during the first period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins left wing Brad Marchand (63) gets then pass away as Edmonton Oilers' Alex Chiasson (39) defends during the first period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Patrice Bergeron scored his 27th goal for the Bruins, who have won four straight and 10 of their last 11 games.

Boston Bruins defenseman Zdeno Chara (33) and teammate defenseman Charlie McAvoy (73) battle for the puck with Edmonton Oilers' Ryan Nugent-Hopkins (93) during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins defenseman Zdeno Chara (33) and teammate defenseman Charlie McAvoy (73) battle for the puck with Edmonton Oilers' Ryan Nugent-Hopkins (93) during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Sam Gagner had a goal for the short-handed Oilers, who are expected to be without Connor McDavid for much of the month because of a leg injury.

The Bruins had 10 shots on net in the first and held Edmonton to just two shots against Boston starter Tuukka Rask.

Edmonton had an 18-9 edge in shots in the second period, but it remained a one-goal game through 40 minutes.

Boston Bruins goaltender Tuukka Rask (40) makes the save as Edmonton Oilers' Ryan Nugent-Hopkins (93) falls on top of him during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins goaltender Tuukka Rask (40) makes the save as Edmonton Oilers' Ryan Nugent-Hopkins (93) falls on top of him during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

The Oilers tied it on a power play four minutes into the third period as Gagner tipped an Ethan Bear shot up high over Rask for his fifth of the season.

Boston had a chance to win the game with four minutes to play in the third, but Pastrnak hit the post to eventually send the game to extra time.

NOTES: It was the second and final meeting between the two teams this season. Edmonton won the first 4-1 in Boston. … Edmonton is depleted. The Oilers were without McDavid (quad), Joakim Nygard (hand), Kris Russell (concussion), James Neal (foot) and Oscar Klefbom (shoulder) and they were also missing Zack Kassian due to a suspension.

Boston Bruins defenseman Brandon Carlo (25) gets his stick in the face of Edmonton Oilers' Gaetan Haas (91) during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins defenseman Brandon Carlo (25) gets his stick in the face of Edmonton Oilers' Gaetan Haas (91) during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

UP NEXT

Bruins: Play at Calgary on Friday.

Oilers: Host Minnesota on Friday.

More AP NHL: https://apnews.com/NHL and https://twitter.com/AP_Sports

Boston Bruins right wing Chris Wagner (14) is checked by Edmonton Oilers center Gaetan Haas (91) during the first period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason Fransonthe Canadian Press via AP)

Boston Bruins right wing Chris Wagner (14) is checked by Edmonton Oilers center Gaetan Haas (91) during the first period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason Fransonthe Canadian Press via AP)

Boston Bruins defenseman Charlie McAvoy (73) and Edmonton Oilers' Ryan Nugent-Hopkins (93) battle for the puck during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins defenseman Charlie McAvoy (73) and Edmonton Oilers' Ryan Nugent-Hopkins (93) battle for the puck during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins left wing Anders Bjork (10) and Edmonton Oilers defenseman Adam Larsson (6) battle for the puck during the first period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins left wing Anders Bjork (10) and Edmonton Oilers defenseman Adam Larsson (6) battle for the puck during the first period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins goaltender Tuukka Rask (40) makes the save as Edmonton Oilers' Alex Chiasson (39) and Boston Bruins defenseman Zdeno Chara (33) battle during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins goaltender Tuukka Rask (40) makes the save as Edmonton Oilers' Alex Chiasson (39) and Boston Bruins defenseman Zdeno Chara (33) battle during the second period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins left wing Brad Marchand (63) gets then pass away as Edmonton Oilers' Alex Chiasson (39) defends during the first period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Boston Bruins left wing Brad Marchand (63) gets then pass away as Edmonton Oilers' Alex Chiasson (39) defends during the first period of an NHL hockey game, Wednesday, Feb. 19, 2020 in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)