tsweb: jsonhandler: fix content type

Signed-off-by: Zijie Lu <zijie@tailscale.com>
This commit is contained in:
Zijie Lu
2020-07-14 15:27:26 -04:00
parent 23123907c0
commit c9e40abfb8
2 changed files with 5 additions and 1 deletions

View File

@ -44,6 +44,10 @@ func TestNewJSONHandler(t *testing.T) {
t.Fatalf("wrong status: %s %s", d.Status, status)
}
if w.Header().Get("Content-Type") != "application/json" {
t.Fatalf("wrong content type: %s", w.Header().Get("Content-Type"))
}
return d
}