Merge branch 'master' into master

This commit is contained in:
jola5 authored and GitHub committed 2017-01-19 23:07:49 +01:00
commit 4bf27d1dae
32 files changed
+261 -9

No files matched your search

+7
View File
@@ -41,6 +41,13 @@ func apiGraph(c *gin.Context) {
buf := bytes.NewBufferString(graph.String())
if ext == "dot" || ext == "gv" {
// If the raw dot data is requested, return it as string.
// This allows client-side rendering rather than server-side.
c.String(200, buf.String())
return
}
command := exec.Command("dot", "-T"+ext)
command.Stderr = os.Stderr