fix a couple of places where we were posting events as application/json