Skip to content

Commit

Permalink
use constant value for unix socket so valid url host is set
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubbujny committed Jan 17, 2024
1 parent 4cb75ea commit b335dfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generate/templates/client.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func parseAddress(address string) (*url.URL, error) {
// used in the application layer and not to the transport layer. Hence,
// setting the fields accordingly.
parsed.Scheme = "http"
parsed.Host = strings.TrimPrefix(address, "unix://") // socket
parsed.Host = "unix.socket"
parsed.Path = ""
}

Expand Down

0 comments on commit b335dfa

Please sign in to comment.