coreos/fleet — pull request #573 by bcwaldon (2014-06-24 23:35:02+00:00)
Title: fix(API): Send correct Content-Type with error entities

`rw.WriteHeader` was being called in `sendError` before the `Content-Type: application/json` was actually being set.