mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Fix go-get content type (#3426)
This commit is contained in:
		@@ -189,7 +189,9 @@ func Contexter() macaron.Handler {
 | 
				
			|||||||
				branchName = repo.DefaultBranch
 | 
									branchName = repo.DefaultBranch
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			prefix := setting.AppURL + path.Join(ownerName, repoName, "src", "branch", branchName)
 | 
								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>
 | 
					<html>
 | 
				
			||||||
	<head>
 | 
						<head>
 | 
				
			||||||
		<meta name="go-import" content="{GoGetImport} git {CloneLink}">
 | 
							<meta name="go-import" content="{GoGetImport} git {CloneLink}">
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user