jaeles-project / gospider

Gospider - Fast web spider written in Go
MIT License
2.54k stars 306 forks source link

Not works with proxy option when response is HTTP/2 #35

Open klau5dev opened 3 years ago

klau5dev commented 3 years ago

Hi!

There is a bug when using proxy option and the server response HTTP/2. The crawling is immediately fail, and the debug message was this.

I used gospider -s {{MY INPUT DOMAIN}} --depth 3 -v -t 50 -c 3 -o result --proxy http://127.0.0.1:8080 --debug command.

[0007] DEBUG Error request: {{MY INPUT DOMAIN}} - Status code: 0 - Error: Get "{{MY INPUT DOMAIN}}": net/http: HTTP/1.x transport connection broken: malformed HTTP version "HTTP/2"

I think it's because of some modules version.