Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix content rel issues #1630

Merged
merged 2 commits into from Mar 20, 2024
Merged

Fix content rel issues #1630

merged 2 commits into from Mar 20, 2024

Conversation

dogancanbakir
Copy link
Member

Closes #1629

$ export SHOW_DSL_ERRORS=true

$ go run . -u "localhost:8000" -path "/nothing_cl0" -fdc "content_length < 1" -debug

    __    __  __       _  __
   / /_  / /_/ /_____ | |/ /
  / __ \/ __/ __/ __ \|   /
 / / / / /_/ /_/ /_/ /   |
/_/ /_/\__/\__/ .___/_/|_|
             /_/

                projectdiscovery.io

[INF] Current httpx version v1.6.0 (latest)
[INF] Dumped HTTP request for https://localhost:8000/nothing_cl0

GET /nothing_cl0 HTTP/1.1
Host: localhost:8000
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
Accept-Charset: utf-8
Accept-Encoding: gzip

[INF] Dumped HTTP request for http://localhost:8000/nothing_cl0

GET /nothing_cl0 HTTP/1.1
Host: localhost:8000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0
Accept-Charset: utf-8
Accept-Encoding: gzip

[INF] Dumped HTTP response for http://localhost:8000/nothing_cl0

HTTP/1.0 200 OK
Connection: close
Date: Wed, 13 Mar 2024 16:21:24 GMT
Server: BaseHTTP/0.6 Python/3.12.2
Content-Length: 0

This is the example server used for this test.

@dogancanbakir dogancanbakir self-assigned this Mar 13, 2024
@dogancanbakir dogancanbakir linked an issue Mar 13, 2024 that may be closed by this pull request
Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - Nice catch! I wonder if for words count strings.Fields would be a better option

@ehsandeep ehsandeep merged commit a4b0261 into dev Mar 20, 2024
11 checks passed
@ehsandeep ehsandeep deleted the fix_content_rel_issues branch March 20, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to match an empty response body?
3 participants