Skip to content

Commit

Permalink
Set content-type in the client
Browse files Browse the repository at this point in the history
Only supports binary mode still
  • Loading branch information
public committed Apr 26, 2021
1 parent c94b0f8 commit 915b07a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonora/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 915b07a

Please sign in to comment.