Bristol City 0-1 Middlesbrough
A stunning injury-time free-kick from Malaury Martin earned Middlesbrough all three points at Bristol City and moved Boro up to third in the Championship.
The Frenchman's 30-yard effort gave David James no chance on his 750th league appearance.
The goal ended City's six-game unbeaten run but it could have been different.
The home side felt they should have been awarded a penalty when Julio Arca handled in the area but the referee waved away the protests.
Tony Mowbray's Middlesbrough side have struggled for goals in recent weeks, after failing to score in six of their previous 12 matches.
They huffed and puffed at Ashton Gate and had goalkeeper Jason Steele to thank for keeping them in the match.
He made a point-blank save from Nicky Maynard in the first half and then scrambled a shot from Brett Pitman off the line late on as City went in desperate search of the win.
At the other end James had a relatively quiet 90 minutes but could do nothing to stop the rocket from Martin, who scored only his second goal since signing for Boro in the summer.