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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: curlify3
3
- Version: 0.3
3
+ Version: 0.4
4
4
  Summary: yet another library to convert request object to curl command
5
5
  Home-page: https://github.com/shpaker/curlify3
6
6
  Author: A.Shpak
@@ -1,6 +1,6 @@
1
1
  from curlify3._curl import to_curl, to_curl_async
2
2
 
3
- __version__ = "0.3"
3
+ __version__ = "0.4"
4
4
  __all__ = [
5
5
  "to_curl",
6
6
  "to_curl_async",
@@ -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()}'")
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "curlify3"
3
- version = "0.3"
3
+ version = "0.4"
4
4
  description = "yet another library to convert request object to curl command"
5
5
  authors = ["A.Shpak <aleksander.shpak.als@gmail.com>"]
6
6
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes