can you take headache medicine while fasting