Skip to content

Commit 976b874

Browse files
committed
Remove Content-Encoding=Identity as the header as it violates the RFC
1 parent 992ff7c commit 976b874

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

influxdb_client/client/write_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def _retry_callback_delegate(exception):
507507
def _post_write(self, _async_req, bucket, org, body, precision, **kwargs):
508508

509509
return self._write_service.post_write(org=org, bucket=bucket, body=body, precision=precision,
510-
async_req=_async_req, content_encoding="identity",
510+
async_req=_async_req,
511511
content_type="text/plain; charset=utf-8",
512512
**kwargs)
513513

influxdb_client/client/write_api_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@ async def write(self, bucket: str, org: str = None,
120120
body = b'\n'.join(payloads[write_precision])
121121
response = await self._write_service.post_write_async(org=org, bucket=bucket, body=body,
122122
precision=write_precision, async_req=False,
123-
content_encoding="identity", _return_http_data_only=False,
123+
_return_http_data_only=False,
124124
content_type="text/plain; charset=utf-8")
125125
return response[1] == 204

0 commit comments

Comments
 (0)