Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit cec7f5a

Browse files
committed
added comment to remind how data/json/files behaves
1 parent 397ee01 commit cec7f5a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CloudFlare/network.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ def __call__(self, method, url, headers=None, params=None, data_str=None, data_j
3838

3939
method = method.upper()
4040

41+
# https://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file
42+
# Note, the json parameter is ignored if either data or files is passed.
43+
# This should have been handled well before here (it is!)
44+
4145
if method == 'GET':
4246
# no data or files
4347
r = self.session.get(

0 commit comments

Comments
 (0)