diff --git a/modules/context/context.go b/modules/context/context.go
index e69094863d..77128b8780 100644
--- a/modules/context/context.go
+++ b/modules/context/context.go
@@ -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}">