@@ -26,21 +26,21 @@ def get(self, request, request_id):
26
26
'request' : request
27
27
}
28
28
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
30
30
body = silk_request .raw_body
31
31
try :
32
32
body = json .loads (body ) # Incase encoded as JSON
33
33
except (ValueError , TypeError ):
34
- pass
34
+ pass
35
35
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 ),
40
40
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
+
46
46
return render (request , 'silk/request.html' , context )
0 commit comments