Skip to content

Commit d5fb3b9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c1a317b commit d5fb3b9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

silk/views/request_detail.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ def get(self, request, request_id):
2626
'request': request
2727
}
2828

29-
if len(silk_request.raw_body<20000): # Don't do this for large request
29+
if len(silk_request.raw_body < 20000): # Don't do this for large request
3030
body = silk_request.raw_body
3131
try:
3232
body = json.loads(body) # Incase encoded as JSON
3333
except (ValueError, TypeError):
34-
pass
34+
pass
3535
context['curl'] = curl_cmd(url=request.build_absolute_uri(silk_request.path),
36-
method=silk_request.method,
37-
query_params=query_params,
38-
body=body,
39-
content_type=silk_request.content_type),
36+
method=silk_request.method,
37+
query_params=query_params,
38+
body=body,
39+
content_type=silk_request.content_type),
4040
context['client'] = gen(path=silk_request.path,
41-
method=silk_request.method,
42-
query_params=query_params,
43-
data=body,
44-
content_type=silk_request.content_type),
45-
41+
method=silk_request.method,
42+
query_params=query_params,
43+
data=body,
44+
content_type=silk_request.content_type),
45+
4646
return render(request, 'silk/request.html', context)

0 commit comments

Comments
 (0)