If the chord y=mx+1 of the circle x2+y2=1, subtends an angle of π4 at the major segment of the circle, then m=