[Git][NTPsec/ntpsec][master] ntpviz: use RFC4180 mimetype for summary.csv.

Gary E. Miller gitlab at mg.gitlab.com
Sun Oct 16 20:20:22 UTC 2016


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
97a4fb9e by Gary E. Miller at 2016-10-16T13:19:03-07:00
ntpviz: use RFC4180 mimetype for summary.csv.

I'm not sure what good it does in the link.  It needs to be set
in the web server.

- - - - -


1 changed file:

- ntpstats/ntpviz


Changes:

=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -1455,9 +1455,12 @@ ntpviz</a>, part of the <a href="https://www.ntpsec.org/">NTPsec project</a>
             for sta in stat:
                 index_buffer += str( sta.table )
                 csvs += sta.csv
+        # RFC4180 specifies the mime-type of a csv
+        # your webserver should be programmed the same
         index_buffer += """\
 </table>
-<a href="summary.csv" target="_blank">Summary as CSV file</a><br>
+<a href="summary.csv" target="_blank" 
+  type="text/csv; charset=UTF-8; header=present;">Summary as CSV file</a><br>
 </div>
 """
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/97a4fb9e86d6ac634a6bf8b7f5947bdc68499e96
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161016/2f1409b7/attachment.html>


More information about the vc mailing list