Skip to content

Commit

Permalink
Fixes bug where paths on hosts were cumulative
Browse files Browse the repository at this point in the history
  • Loading branch information
tomnomnom committed Jan 3, 2018
1 parent c6c5d0c commit 770629b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func main() {
fmt.Fprintf(os.Stderr, "failed to parse host: %s\n", err)
continue
}
path = u.Path + path
prefixedPath := u.Path + path
u.Path = ""

// stripping off a path means we need to
Expand All @@ -129,7 +129,7 @@ func main() {
requests <- request{
method: c.method,
host: host,
path: path,
path: prefixedPath,
headers: c.headers,
}
}
Expand Down

0 comments on commit 770629b

Please sign in to comment.