mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-11 17:18:09 +02:00
Merge pull request #520 from floatdrop/exp
Add image/svg+xml content-type to badge handler
This commit is contained in:
commit
2543d17ff1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user