curlify3 0.3__tar.gz → 0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {curlify3-0.3 → curlify3-0.4}/PKG-INFO +1 -1
- {curlify3-0.3 → curlify3-0.4}/curlify3/__init__.py +1 -1
- {curlify3-0.3 → curlify3-0.4}/curlify3/_curl.py +1 -0
- {curlify3-0.3 → curlify3-0.4}/pyproject.toml +1 -1
- {curlify3-0.3 → curlify3-0.4}/README.md +0 -0
- {curlify3-0.3 → curlify3-0.4}/curlify3/_base.py +0 -0
- {curlify3-0.3 → curlify3-0.4}/curlify3/_req_aiohttp.py +0 -0
- {curlify3-0.3 → curlify3-0.4}/curlify3/_req_httpx.py +0 -0
- {curlify3-0.3 → curlify3-0.4}/curlify3/_req_requests.py +0 -0
- {curlify3-0.3 → curlify3-0.4}/curlify3/_req_starlette.py +0 -0
- {curlify3-0.3 → curlify3-0.4}/curlify3/_utils.py +0 -0
|
@@ -29,6 +29,7 @@ def make_curl_cookies(cookies):
|
|
|
29
29
|
|
|
30
30
|
def make_multipart_curl_args(body):
|
|
31
31
|
body_parts = []
|
|
32
|
+
body = body.encode() if isinstance(body, str) else body
|
|
32
33
|
for matched in MULTIPART_FORM_DATA.finditer(body):
|
|
33
34
|
groups = matched.groups()
|
|
34
35
|
body_parts.append(f"-F '{groups[0].decode()}={groups[1].decode()}'")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|