mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 14:24:37 +03:00
change javascript into typescript for webaccount and webadmin interface
all ui frontend code is now in typescript. we no longer need jshint, and we build the frontend code during "make build". this also changes tlsrpt types for a Report, not encoding field names with dashes, but to keep them valid identifiers in javascript. this makes it more conveniently to work with in the frontend, and works around a sherpats limitation.
This commit is contained in:
@ -584,7 +584,7 @@ func serveEvents(ctx context.Context, log mlog.Log, w http.ResponseWriter, r *ht
|
||||
// We'll be sending quite a bit of message data (text) in JSON (plenty duplicate
|
||||
// keys), so should be quite compressible.
|
||||
var out writeFlusher
|
||||
gz := acceptsGzip(r)
|
||||
gz := mox.AcceptsGzip(r)
|
||||
if gz {
|
||||
h.Set("Content-Encoding", "gzip")
|
||||
out, _ = gzip.NewWriterLevel(w, gzip.BestSpeed)
|
||||
|
Reference in New Issue
Block a user