Skip to content

Commit

Permalink
Fix go-get content type (#3426)
Browse files Browse the repository at this point in the history
  • Loading branch information
lafriks authored Jan 29, 2018
1 parent 7af8197 commit aef3007
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ func Contexter() macaron.Handler {
branchName = repo.DefaultBranch
}
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>
<head>
<meta name="go-import" content="{GoGetImport} git {CloneLink}">
Expand Down

0 comments on commit aef3007

Please sign in to comment.