aboutsummaryrefslogtreecommitdiff
path: root/parsers/http_request_parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'parsers/http_request_parser.go')
-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 ""