DSL filter not working correctly in specific cases #1887
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
httpx version: v1.6.8
Current Behavior:
The dsl filter in the command
httpx -silent -location -title -fdc 'starts_with(location, "https://") || starts_with(title, "Google")' <<< 'www.google.com'
does not work. Specifically, thestarts_with(title, "Google")
part does not filter out pages whose title is "Google"Expected Behavior:
httpx -silent -location -title -fdc 'starts_with(location, "https://") || starts_with(title, "Google")' <<< 'www.google.com'
should return no outputSteps To Reproduce:
Running
httpx -silent -location -title <<< 'www.google.com'
tell us thatwww.google.com
doesn't return aLocation:
header, and that its title is 'Google'Next, running the same query as above but with the dsl filter
starts_with(title, "https://") || starts_with(title, "Google")
, httpx correctly returns no output.However, when using the dsl filter
starts_with(location, "https://") || starts_with(title, "Google")' <<< 'www.google.com
, httpx does not correctly filter out the response with the title 'Google'The text was updated successfully, but these errors were encountered: