(v string)
| 61 | } |
| 62 | |
| 63 | func decodeBinHeader(v string) ([]byte, error) { |
| 64 | if len(v)%4 == 0 { |
| 65 | // Input was padded, or padding was not necessary. |
| 66 | return base64.StdEncoding.DecodeString(v) |
| 67 | } |
| 68 | return base64.RawStdEncoding.DecodeString(v) |
| 69 | } |
| 70 | |
| 71 | /* |
| 72 | AnnotateContext adds context information such as metadata from the request. |