diff --git a/util.go b/util.go index 193b6a0..23c7cbc 100644 --- a/util.go +++ b/util.go @@ -115,6 +115,9 @@ func firstErr(err1, err2 error) error { // DumpRequestRaw to string func DumpRequestRaw(method, url, uripath string, headers map[string][]string, body io.Reader, options Options) ([]byte, error) { + if len(options.CustomRawBytes) > 0 { + return options.CustomRawBytes, nil + } if headers == nil { headers = make(map[string][]string) }