Skip to content

disable dedupe in response file write when -sd is used #2152

@ehsandeep

Description

@ehsandeep

httpx can avoid overwriting response file content for the same input when -skip-dedupe is used, as the user has explicitly disabled deduplication and wants to see each copy of the response.

Input:

$ cat test.txt
example.com
example.com

httpx run

 $ httpx -l test.txt -stream -skip-dedupe -sr -silent
https://example.com
https://example.com

Current behavior:

$ tree output/response
output/response
├── example.com
│   └── cea8d4cbc5e3b39fcbcf053e0e0244fe14c835ae.txt
└── index.txt

1 directory, 2 files

Expected behavior:

$ tree output/response
output/response
 ├── example.com
 │ └── cea8d4cbc5e3b39fcbcf053e0e0244fe14c835ae.txt
+├── example.com
+│ └── cea8d4cbc5e3b39fcbcf053e0e0244fe14c835ae.txt
 └── index.txt

1 directory, 3 files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions