Skip to content

Commit

Permalink
Merge pull request #296 from projectdiscovery/dev
Browse files Browse the repository at this point in the history
Bug fix for crash
  • Loading branch information
ehsandeep authored May 31, 2021
2 parents cc9ee63 + 2143c56 commit 8ca8aaa
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
20 changes: 14 additions & 6 deletions .github/issue-report.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
---
name: Issue report
about: Create a report to help us improve
title: "[issue]"
labels: ''
title: ""
labels: 'Type:+Bug'
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**Nuclei version**
Please share the version of the httpx you are running with `httpx -version`
**Environment details**
Please share the below details to help us quickly validate/replicate the issue.

- `httpx -version`
- `go version`
- `uname -a`

**Screenshot of the error or bug**
please add the screenshot showing bug or issue you are facing.

**Error details**
Please copy-paste the error trace or details from terminal to help us quickly validate/replicate the issue.

```bash

```
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ httpx is a fast and multi-purpose HTTP toolkit allow to run multiple probers usi
httpx requires **go1.14+** to install successfully. Run the following command to get the repo -

```sh
GO111MODULE=on go get -v github.com/projectdiscovery/httpx/cmd/httpx
GO111MODULE=on go get -v github.com/projectdiscovery/httpx/cmd/httpx
```

# Usage
Expand Down
4 changes: 2 additions & 2 deletions runner/banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const banner = `
/ __ \/ __/ __/ __ \| /
/ / / / /_/ /_/ /_/ / |
/_/ /_/\__/\__/ .___/_/|_|
/_/ v1.0.8
/_/ v1.0.9
`

// Version is the current version of httpx
const Version = `v1.0.8`
const Version = `v1.0.9`

// showBanner is used to show the banner to the user
func showBanner() {
Expand Down
5 changes: 4 additions & 1 deletion runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,10 @@ retry:
domain = parts[0]
customHost = parts[1]
}
URL, _ := urlutil.Parse(domain)
URL, err := urlutil.Parse(domain)
if err != nil {
return Result{URL: domain, err: err}
}
URL.Scheme = protocol

if !strings.Contains(domain, URL.Port) {
Expand Down

0 comments on commit 8ca8aaa

Please sign in to comment.