Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
fix duplicate port in the redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
DisposaBoy authored Apr 27, 2018
1 parent d88a644 commit 245cfe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plumbing/transport/http/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (s *session) ModifyEndpointIfRedirect(res *http.Response) {
}

s.endpoint.Protocol = r.URL.Scheme
s.endpoint.Host = r.URL.Host
s.endpoint.Host = r.URL.Hostname()
s.endpoint.Port, _ = strconv.Atoi(r.URL.Port())
s.endpoint.Path = r.URL.Path[:len(r.URL.Path)-len(infoRefsPath)]
}
Expand Down

0 comments on commit 245cfe7

Please sign in to comment.