normalizing the response headers causes confusion #922
Labels
Status: Completed
Nothing further to be done with this issue. Awaiting to be closed.
Type: Bug
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Milestone
katana version: v1.1.0
Current Behavior:
When crawling a site with the
-jsonl
flag, the response headers are lowercased, and-
characters are converted to_
. This is misleading, because technically bothSome-Header
andSome_Header
are both valid headers. The normalization of the response header prevents the end user from being able to identify what the actual response header was.But lowercasing the response header makes sense, because the headers are case-insensitive.
Expected Behavior:
Response headers in Kebab-Case are preserved, so
Content-Type
is reflected ascontent-type
in the JSON output.Steps To Reproduce:
Run this command:
See that the
report_to
HTTP header doesn't match the actual response header from the server (report-to
).Anything else:
Offending code: https://github.com/projectdiscovery/katana/blob/main/pkg/navigation/response.go#L23
The text was updated successfully, but these errors were encountered: