summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'http.go')
-rw-r--r--http.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/http.go b/http.go
index b8f8758..961ca2b 100644
--- a/http.go
+++ b/http.go
@@ -44,9 +44,23 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
}
if tmp == "/favicon.ico" {
+ // w.Header().Set("Content-Type", "image/svg+xml")
+ w.Header().Set("Content-Type", "image/png")
writeFile(w, "ipv6.png")
return
}
+
+ if tmp == "/goReference.svg" {
+ w.Header().Set("Content-Type", "image/svg+xml")
+ writeFile(w, "goReference.svg")
+ return
+ }
+
+ if tmp == "/writeconfig" {
+ writeConfigFile()
+ return
+ }
+
if tmp == "/uptime" {
b, s := clusterHealthy()
if b {