mirror of
https://github.com/harness/drone.git
synced 2025-05-21 11:29:52 +08:00
Add image/svg+xml content-type to badge handler
This commit is contained in:
parent
d00cf9e650
commit
b854911d23
@ -81,6 +81,9 @@ func GetCC(c web.C, w http.ResponseWriter, r *http.Request) {
|
|||||||
owner = c.URLParams["owner"]
|
owner = c.URLParams["owner"]
|
||||||
name = c.URLParams["name"]
|
name = c.URLParams["name"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
w.Header().Set("Content-Type", "image/svg+xml")
|
||||||
|
|
||||||
repo, err := datastore.GetRepoName(ctx, host, owner, name)
|
repo, err := datastore.GetRepoName(ctx, host, owner, name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
w.Write(badgeNone)
|
w.Write(badgeNone)
|
||||||
|
Loading…
Reference in New Issue
Block a user