Skip to content

Commit

Permalink
Merge pull request #21 from projectdiscovery/bugfix-request-dump
Browse files Browse the repository at this point in the history
fixing dump request with raw bytes
  • Loading branch information
Mzack9999 authored Feb 22, 2021
2 parents 5d8641e + a8ac9d4 commit 84c18ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 84c18ae

Please sign in to comment.