#1037 Medium Logic

You have two ropes that each burn completely in exactly one hour, but they burn unevenly. How do you measure exactly 45 minutes using only these two ropes and a lighter?