Skip to content

Commit de36d96

Browse files
authored
Merge pull request #991 from judehung/issue-990
fix: NewRESTAddress use http as default scheme
2 parents b20d5f4 + f54e88f commit de36d96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dtos/address.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ type RESTAddress struct {
6969
}
7070

7171
func NewRESTAddress(host string, port int, httpMethod string, scheme string) Address {
72+
if scheme == "" {
73+
scheme = common.HTTP
74+
}
7275
return Address{
7376
Type: common.REST,
7477
Host: host,

0 commit comments

Comments
 (0)