Josh Allen connected on a 42-yard touchdown with Robert Foster on what proved to be the game winner as the Buffalo Bills held off the Detroit Lions 14-13 at New Era Field on Sunday in Buffalo.

It was Allen's lone touchdown pass on the day, but he scored the Bills' other TD on a three-yard run in the second quarter. Allen finished the day with 204 passing yards, a touchdown and no picks. He ran for 16 yards on the game, snapping his streak of consecutive games with 90 or more rushing yards.

The Lions 7 catches for 146 yards from Kenny Golladay.

Each team now sits at 5-9. The Bills move to 3-4 at home. They'll hit the road next week to visit the rival New England Patriots.

More From WIBX 950