Browse Source

Only ingesting headers

Loweel 4 years ago
parent
commit
b570b1f75d
1 changed files with 1 additions and 5 deletions
  1. 1 5
      classifier.go

+ 1 - 5
classifier.go

@@ -131,11 +131,7 @@ func feedRequest(req *http.Request, class string) {
 
 func formatRequest(req *http.Request) string {
 
-	ingestBody := req.ContentLength < 2048 && req.ContentLength > 1
-
-	log.Println("Ingesting the body: ", ingestBody)
-
-	requestDump, err := httputil.DumpRequest(req, ingestBody)
+	requestDump, err := httputil.DumpRequest(req, false)
 	if err != nil {
 		fmt.Println(err)
 	}