瀏覽代碼

pkg/context: add doctype to go-get=1 response (#4938)

Drahoslav Bednář 7 年之前
父節點
當前提交
7faa2356d8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/context/context.go

+ 1 - 1
pkg/context/context.go

@@ -244,7 +244,7 @@ func Contexter() macaron.Handler {
 			}
 
 			prefix := setting.AppURL + path.Join(ownerName, repoName, "src", 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}">