Set content type so browsers will interpret result as JSON.

This commit is contained in:
Bill Thiede 2014-03-02 23:22:23 -08:00
parent d83b2fc139
commit a607477934

View File

@ -94,6 +94,7 @@ func newMailCounter() *mailCounter {
func (mc *mailCounter) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Content-Type", "application/json")
c := map[string]int{}
for k, v := range mc.counts {
if v != 0 {