Skip to content

Commit

Permalink
dump response bodies for urlencoded bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Jan 24, 2018
1 parent ebbe547 commit cac47c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/http.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package utils

import (
"strconv"
"crypto/tls"
"fmt"
"io/ioutil"
"net/http"
"net/http/httputil"
"strconv"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -131,8 +131,9 @@ func newRRFromResponse(method string, requestTrace string, r *http.Response) (*R
contentType := r.Header.Get("Content-Type")
if strings.Contains(contentType, "text") ||
strings.Contains(contentType, "json") ||
strings.Contains(contentType, "utf") ||
strings.Contains(contentType, "javascript") ||
strings.Contains(contentType, "urlencoded") ||
strings.Contains(contentType, "utf") ||
strings.Contains(contentType, "xml") {

isText = true
Expand Down

0 comments on commit cac47c4

Please sign in to comment.