(v string)
| 133 | } |
| 134 | |
| 135 | func decodeBinHeader(v string) ([]byte, error) { |
| 136 | if len(v)%4 == 0 { |
| 137 | // Input was padded, or padding was not necessary. |
| 138 | return base64.StdEncoding.DecodeString(v) |
| 139 | } |
| 140 | return base64.RawStdEncoding.DecodeString(v) |
| 141 | } |
| 142 | |
| 143 | func encodeMetadataHeader(k, v string) string { |
| 144 | if strings.HasSuffix(k, binHdrSuffix) { |
no outgoing calls
no test coverage detected