(key string, value string)
| 155 | } |
| 156 | |
| 157 | func 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 | } |
no outgoing calls
no test coverage detected