MCPcopy Index your code
hub / github.com/syncthing/syncthing / forbidden

Function forbidden

lib/api/api_auth.go:92–94  ·  view source on GitHub ↗
(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

90}
91
92func forbidden(w http.ResponseWriter) {
93 http.Error(w, "Forbidden", http.StatusForbidden)
94}
95
96func isNoAuthPath(path string, metricsWithoutAuth bool) bool {
97 // Local variable instead of module var to prevent accidental mutation

Callers 2

ServeHTTPMethod · 0.85
passwordAuthHandlerMethod · 0.85

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected