This commit is contained in:
iamqizhao 2015-12-15 15:53:37 -08:00
Родитель 87d84117a8
Коммит 3d2cc2df9c
1 изменённых файлов: 0 добавлений и 11 удалений

Просмотреть файл

@ -46,17 +46,6 @@ const (
binHdrSuffix = "-bin" binHdrSuffix = "-bin"
) )
// grpc-http2 requires ASCII header key and value (more detail can be found in
// "Requests" subsection in go/grpc-http2).
func isASCII(s string) bool {
for _, c := range s {
if c > 127 {
return false
}
}
return true
}
// encodeKeyValue encodes key and value qualified for transmission via gRPC. // encodeKeyValue encodes key and value qualified for transmission via gRPC.
// Transmitting binary headers violates HTTP/2 spec. // Transmitting binary headers violates HTTP/2 spec.
// TODO(zhaoq): Maybe check if k is ASCII also. // TODO(zhaoq): Maybe check if k is ASCII also.