diff --git a/nameko_grpc/compression.py b/nameko_grpc/compression.py index 6fa050e..90e1161 100644 --- a/nameko_grpc/compression.py +++ b/nameko_grpc/compression.py @@ -42,6 +42,8 @@ def compress(data, encoding): # level? def select_algorithm(acceptable_encodings, preferred_encoding): if preferred_encoding and preferred_encoding in SUPPORTED_ENCODINGS: return preferred_encoding + if not acceptable_encodings: + return "identity" for encoding in SUPPORTED_ENCODINGS: if encoding in acceptable_encodings: return encoding diff --git a/setup.py b/setup.py index 273615e..c771049 100644 --- a/setup.py +++ b/setup.py @@ -14,14 +14,20 @@ setup( name="nameko-grpc", - version="1.2.0rc1", + version="1.2.0rc2", description="Nameko gRPC extensions", long_description=readme, long_description_content_type="text/markdown", author="Matt Yule-Bennett", url="http://github.com/nameko/nameko-grpc", packages=find_packages(exclude=["test"]), - install_requires=["nameko>=3.0.0-rc9", "h2>=3", "grpcio", "protobuf"], + install_requires=[ + "nameko>=3.0.0-rc9", + "h2>=3", + "grpcio", + "protobuf", + "googleapis-common-protos", + ], extras_require={ "dev": [ "coverage",