I think I would have folded. he raised preflop so he had to have something before flop. Your pair just middle so I wouldn't have chanced it myself. But who knows.