aboutsummaryrefslogtreecommitdiff
path: root/parsers
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-09-16 13:41:04 +0000
committerEmiliano Ciavatta2020-09-16 13:41:04 +0000
commitec949ffea86a14526a7142d048022a4a07f684ff (patch)
treef91966e42d93e94e29d7c11c1eeb67704da297eb /parsers
parent2954045cb28ea8cbf4dbd019355a2df8fed28ccc (diff)
Improve frontend connection visualization
Diffstat (limited to 'parsers')
-rw-r--r--parsers/http_request_parser.go2
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 ""