Just draw the fig. correctly in the first place.The angle between the perpendicular and bent portion is 90+x(say the angle bent is x).Now the expression of magnetic field for unbent part is{

I/4(pie)L}(cos0+cos90)
Second part is same for the exp in {} except the angles.It is (cos (90+x)+cos0).
Since both the field are im same direction,just add them.