From b854911d231249ab2d4c751d6d93a6c9d414b169 Mon Sep 17 00:00:00 2001 From: Vsevolod Strukchinsky Date: Wed, 8 Oct 2014 16:59:14 +0600 Subject: [PATCH] Add image/svg+xml content-type to badge handler --- server/handler/badge.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/handler/badge.go b/server/handler/badge.go index cc1c67290..3077061f6 100644 --- a/server/handler/badge.go +++ b/server/handler/badge.go @@ -81,6 +81,9 @@ func GetCC(c web.C, w http.ResponseWriter, r *http.Request) { owner = c.URLParams["owner"] name = c.URLParams["name"] ) + + w.Header().Set("Content-Type", "image/svg+xml") + repo, err := datastore.GetRepoName(ctx, host, owner, name) if err != nil { w.Write(badgeNone)