Browse Source

Fix go-get content type (#3426)

tags/v1.4.0-rc1
Lauris BH GitHub 8 years ago
parent
commit
57f5bb502e
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/context/context.go

+ 3
- 1
modules/context/context.go View File

@@ -189,7 +189,9 @@ func Contexter() macaron.Handler {
branchName = repo.DefaultBranch
}
prefix := setting.AppURL + path.Join(ownerName, repoName, "src", "branch", branchName)
c.PlainText(http.StatusOK, []byte(com.Expand(`<!doctype html>
c.Header().Set("Content-Type", "text/html")
c.WriteHeader(http.StatusOK)
c.Write([]byte(com.Expand(`<!doctype html>
<html>
<head>
<meta name="go-import" content="{GoGetImport} git {CloneLink}">


Loading…
Cancel
Save