MCPcopy
hub / github.com/cloudfoundry/cli / redactHeaders

Function redactHeaders

api/plugin/wrapper/request_logger.go:157–166  ·  view source on GitHub ↗
(key string, value string)

Source from the content-addressed store, hash-verified

155}
156
157func redactHeaders(key string, value string) string {
158 redactedKeys := []string{"Authorization", "Set-Cookie"}
159 for _, redactedKey := range redactedKeys {
160 if key == redactedKey {
161 return "[PRIVATE DATA HIDDEN]"
162 }
163 }
164
165 return value
166}

Callers 1

displaySortedHeadersMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected