Files
projectdiscovery-httpx/runner
Kral d0081af3ec fix: improve error handling and fix bugs (#2499)
* code quality: improve error handling and fix bugs

- Fix bug: return err instead of closeErr in DecodeData error path (httpx.go)
- Improve error handling for strconv.Atoi calls in multiple locations
- Change hammingDistanceThreshold from var to const since it's never modified
- Fix redundant return statement in ListFilesWithPattern
- Improve port parsing to handle empty port strings explicitly

* runner: keep input counters incrementing under -skip-dedupe

Revert the defensive strconv.Atoi guard around the SkipDedupe branches:
values stored in r.hm are always integer strings written by this same
code path, so the parseErr/cnt>0 check is unreachable in practice, and
when taken literally it skipped the numHosts/numTargets increment for
duplicate inputs.

---------

Co-authored-by: Mzack9999 <mzack9999@protonmail.com>
2026-05-20 06:41:57 +02:00
..
2026-03-05 14:12:46 +03:00
2021-05-06 10:35:02 +02:00
2022-05-09 15:01:38 -05:00
2025-10-23 14:56:50 +04:00
2021-08-06 12:38:42 +02:00