Explorar o código

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

Drahoslav Bednář %!s(int64=7) %!d(string=hai) anos
pai
achega
7faa2356d8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}">