python-http_request 0.0.5__tar.gz → 0.0.5.1__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.
- {python_http_request-0.0.5 → python_http_request-0.0.5.1}/PKG-INFO +1 -1
- {python_http_request-0.0.5 → python_http_request-0.0.5.1}/http_request/__init__.py +2 -2
- {python_http_request-0.0.5 → python_http_request-0.0.5.1}/pyproject.toml +1 -1
- {python_http_request-0.0.5 → python_http_request-0.0.5.1}/LICENSE +0 -0
- {python_http_request-0.0.5 → python_http_request-0.0.5.1}/http_request/py.typed +0 -0
- {python_http_request-0.0.5 → python_http_request-0.0.5.1}/readme.md +0 -0
|
@@ -110,7 +110,7 @@ def encode_multipart_data(
|
|
|
110
110
|
for name, file in files:
|
|
111
111
|
yield boundary_line
|
|
112
112
|
yield b'Content-Disposition: form-data; name="%s"\r\nContent-Type: application/octet-stream\r\n\r\n' % bytes(quote(name), "ascii")
|
|
113
|
-
if isinstance(file,
|
|
113
|
+
if isinstance(file, Buffer):
|
|
114
114
|
yield file
|
|
115
115
|
elif hasattr(file, "read"):
|
|
116
116
|
yield from bio_chunk_iter(file)
|
|
@@ -146,7 +146,7 @@ def encode_multipart_data_async(
|
|
|
146
146
|
for name, file in files:
|
|
147
147
|
yield boundary_line
|
|
148
148
|
yield b'Content-Disposition: form-data; name="%s"\r\nContent-Type: application/octet-stream\r\n\r\n' % bytes(quote(name), "ascii")
|
|
149
|
-
if isinstance(file,
|
|
149
|
+
if isinstance(file, Buffer):
|
|
150
150
|
yield file
|
|
151
151
|
elif hasattr(file, "read"):
|
|
152
152
|
async for b in bio_chunk_async_iter(file):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|