Browse Source

Add doctype to go-get=1 reponse (#3423)

tags/v1.21.12.1
Lauris BH GitHub 7 years ago
parent
commit
28b81899d0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/context/context.go

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

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


Loading…
Cancel
Save