mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-08-17 05:20:29 +03:00
Fixed #16
This commit is contained in:
parent
dffaaf3eb8
commit
27bce11174
@ -223,7 +223,8 @@ retry:
|
||||
|
||||
// store responses in directory
|
||||
if scanopts.StoreResponse {
|
||||
responsePath := path.Join(scanopts.StoreResponseDirectory, domain+".txt")
|
||||
var domainFile = strings.Replace(domain, "/", "_", -1) + ".txt"
|
||||
responsePath := path.Join(scanopts.StoreResponseDirectory, domainFile)
|
||||
err := ioutil.WriteFile(responsePath, []byte(resp.Raw), 0644)
|
||||
if err != nil {
|
||||
gologger.Fatalf("Could not write response, at path '%s', to disc.", responsePath)
|
||||
|
Loading…
Reference in New Issue
Block a user