James Reimer got bonked in the head and then stood on his head.

Not a bad night for the Toronto Maple Leafs goaltender, who was not even supposed to be in goal against the Los Angeles Kings on Thursday night at the Staples Center.

With Jonathan Bernier gone after the first period because of a lower-body injury, Reimer came on in relief and stopped all 31 shots he faced as the Leafs beat the Kings 3-2, ending L.A.’s eight-game winning streak.

“I wouldn’t blow it up too big,” Reimer said. “I just came in and did my job. Every time you come in it is an opportunity, whether it’s a full game or a half a game. Just go in there and take care of business, don’t think about the future or the past.”

Bernier, wanting to face his former Kings teammates, was sore before the game, coach Randy Carlyle said, and will be evaluated Friday. If Bernier is deemed unhealthy, expect the Leafs to recall goalie Drew MacIntyre from the Toronto Marlies in time for Toronto’s next game, in Washington against the Capitals on Sunday.

Reimer’s excellent performance was not the lone post-game angle involving the goalie. During the second period, he came out of the net to play the puck and was clipped by Kings forward Jarret Stoll.

Reimer fell to the ice and a trainer was summoned, but after getting checked out Reimer skated to the bench during a TV timeout and wiped his head with a towel.