diff options
author | Emiliano Ciavatta | 2020-09-16 13:41:04 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-09-16 13:41:04 +0000 |
commit | ec949ffea86a14526a7142d048022a4a07f684ff (patch) | |
tree | f91966e42d93e94e29d7c11c1eeb67704da297eb /parsers | |
parent | 2954045cb28ea8cbf4dbd019355a2df8fed28ccc (diff) |
Improve frontend connection visualization
Diffstat (limited to 'parsers')
-rw-r--r-- | parsers/http_request_parser.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parsers/http_request_parser.go b/parsers/http_request_parser.go index d204d4c..cfac196 100644 --- a/parsers/http_request_parser.go +++ b/parsers/http_request_parser.go @@ -136,7 +136,7 @@ func fetchRequest(request *http.Request, body string) string { } func toJson(obj interface{}) string { - if buffer, err := json.Marshal(obj); err == nil { + if buffer, err := json.MarshalIndent(obj, "", "\t"); err == nil { return string(buffer) } else { return "" |