diff --git a/godoc/util/util.go b/godoc/util/util.go index feedb7688a..c08ca785fe 100644 --- a/godoc/util/util.go +++ b/godoc/util/util.go @@ -59,6 +59,7 @@ func IsText(s []byte) bool { var textExt = map[string]bool{ ".css": false, // must be served raw ".js": false, // must be served raw + ".svg": false, // must be served raw } // IsTextFile reports whether the file has a known extension indicating