From 915b07af72a27d4969cad6c102f3a07cf25370aa Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Mon, 26 Apr 2021 21:29:13 +0100 Subject: [PATCH] Set content-type in the client Only supports binary mode still --- sonora/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonora/client.py b/sonora/client.py index 4cbc27f..375ac79 100644 --- a/sonora/client.py +++ b/sonora/client.py @@ -54,7 +54,7 @@ def __init__(self, session, url, path, request_serializer, request_deserializer) self._path = path self._rpc_url = urljoin(url, path) - self._metadata = [("x-user-agent", "grpc-web-python/0.1")] + self._metadata = [("x-user-agent", "grpc-web-python/0.1"), ('content-type', 'application/grpc-web+proto')] self._serializer = request_serializer self._deserializer = request_deserializer