Skip to content

Commit cfdcbed

Browse files
authored
Use constant value for unix socket so valid host is set in request URL (#250)
1 parent 4cb75ea commit cfdcbed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generate/templates/client.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func parseAddress(address string) (*url.URL, error) {
140140
// used in the application layer and not to the transport layer. Hence,
141141
// setting the fields accordingly.
142142
parsed.Scheme = "http"
143-
parsed.Host = strings.TrimPrefix(address, "unix://") // socket
143+
parsed.Host = "localhost"
144144
parsed.Path = ""
145145
}
146146

0 commit comments

Comments
 (0)