We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23922e8 commit 263a0d5Copy full SHA for 263a0d5
threescale_api/utils.py
@@ -166,6 +166,8 @@ def request2curl(request: requests.PreparedRequest) -> str:
166
body = request.body
167
if isinstance(body, bytes):
168
body = body.decode("utf-8")
169
+ if len(body) > 160:
170
+ body = body[:160] + "..."
171
cmd.append("-d %s" % shlex.quote(body))
172
cmd.append(shlex.quote(request.url))
173
0 commit comments