nuclei/v2/pkg/protocols/utils
Sajad 928f082109
set content_length as len(body) if response ContentLength is -1 (#2407)
* set content_length as len(body) if response ContentLength is -1

* move content-length calculation to utils

* adding basic tests

Co-authored-by: Mzack9999 <mzack9999@protonmail.com>
2022-10-24 16:37:09 +02:00
..
utils.go set content_length as len(body) if response ContentLength is -1 (#2407) 2022-10-24 16:37:09 +02:00
utils_test.go set content_length as len(body) if response ContentLength is -1 (#2407) 2022-10-24 16:37:09 +02:00