Skip to content

Commit

Permalink
fix: disable autodecompress
Browse files Browse the repository at this point in the history
  • Loading branch information
NarekA committed Dec 6, 2023
1 parent c94ea5f commit bc91179
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jina/serve/runtimes/gateway/request_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ async def _load_balance(self, request):
self.logger.debug('No JSON payload found in request')

Check warning on line 166 in jina/serve/runtimes/gateway/request_handling.py

View check run for this annotation

Codecov / codecov/patch

jina/serve/runtimes/gateway/request_handling.py#L165-L166

Added lines #L165 - L166 were not covered by tests

async with session.request(
request.method, url=target_url, **request_kwargs
request.method,
url=target_url,
auto_decompress=False,
**request_kwargs,
) as response:
# Create a StreamResponse with the same headers and status as the target response
stream_response = web.StreamResponse(
Expand Down

0 comments on commit bc91179

Please sign in to comment.