Skip to content

Commit dcfdc1f

Browse files
committed
Removed Content-Length header
This header should be populated automatically, whereas providing it may cause nginx to fail the request with HTTP 400 if the actual content length does not match.
1 parent 0345bfc commit dcfdc1f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cs3client/file.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ def write_file(
226226
else:
227227
headers = {
228228
"Upload-Length": str(size),
229-
"Content-Length": str(size),
230229
"X-Reva-Transfer": protocol.token,
231230
**dict([auth_token]),
232231
"X-Lock-Id": lock_id,

0 commit comments

Comments
 (0)