MCPcopy Index your code
hub / github.com/github/github-mcp-server / renderSuccess

Function renderSuccess

internal/oauth/callback.go:143–148  ·  view source on GitHub ↗
(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

141}
142
143func renderSuccess(w http.ResponseWriter) {
144 w.Header().Set("Content-Type", "text/html; charset=utf-8")
145 if err := successTemplate.Execute(w, nil); err != nil {
146 http.Error(w, "internal error", http.StatusInternalServerError)
147 }
148}
149
150// renderError shows the failure page. html/template auto-escapes msg, so a
151// hostile error_description cannot inject markup.

Callers 1

handlerMethod · 0.85

Calls 2

HeaderMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected