To be honest, several cops don't give a shit about weed. They probably went so harsh because of how resistent you were.

If you had been straight up, mentioned you had weed as soon as he asked, then told him you were the only one that had smoked it, he would have probably been much cooler about letting them go and giving you some slack.