Jacques Fuentes 3506b38a40 Ensure we write json header before writing bytes
In net/http once we've issued a Write() the response is sent
over the wire including the header! The tests didn't catch
this because I used a net/http/httptest.RequestRecorder
which doesn't follow those semantics.
2014-04-17 14:53:07 -04:00
..
2014-04-11 16:34:29 -07:00
2014-02-23 17:09:59 -08:00
2014-04-11 16:34:29 -07:00
2013-12-31 13:06:33 -08:00
2013-12-31 13:06:33 -08:00
2013-12-31 13:06:33 -08:00
2014-04-11 16:34:29 -07:00
2013-12-30 16:09:39 -08:00
2014-04-11 16:34:29 -07:00