My friend insists I tie my hair up

I had a Palestinian friend in a village outside Nablus who was a colleague in the University. We became friends and she asked and expected me to come very often to her house. At first she did not ask me to do anything. Then 4 months later when we went to her niece's in laws nearby to put on a veil to surprise them. I an not muslim by the way Then almost a year after meeting her when we were about to go out she said do us a favour will you tie your hair up. I asked why . The only answer I got was that it's better
A week or so later she asked me to take off the cardigan tied around my waist. Then just 2 years ago I went back to collect my belongings. We went out around the village. But before that she said do you want to tie your hair up to prevent the wind from blowing it away . She wanted me to surprise a former student of mine and call to his house. We went to an ice cream shop where an employee sat down with us. After that we went to her friend's house where I noticed another friend of hers and asked her if she cut her hair. The lady of the house asked me if I wanted to cut mine as it was so hot. A few American women came the following day with their husbands. We went out for knafeh and she said nothing to them about tying their hair up. Finally I had enough when she asked me how many rooms were in my house and who lived there and decided we could share a room. She sent me a picture of a bag she liked in Hebron and asked for 2 clay pots to cook rice. I told her our friendship was over after I asked her in messages several to explain about tying hair up but she wouldn't explain. Am I unreasonable?
I felt I had to go along with it as I was staying with her but I wish I'd walked out. What would you have done? AITA?