Skip to content

Commit aa00668

Browse files
committed
encoded path in Display
1 parent 5cc591e commit aa00668

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • grpc/src/client/name_resolution

grpc/src/client/name_resolution/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl Display for Target {
134134
"{}://{}{}",
135135
self.scheme(),
136136
self.authority_host_port(),
137-
self.decoded_path
137+
self.url.path()
138138
)
139139
}
140140
}
@@ -443,7 +443,7 @@ mod test {
443443
want_host: "",
444444
want_port: None,
445445
want_path: "/foo bar",
446-
want_str: "dns:///foo bar",
446+
want_str: "dns:///foo%20bar",
447447
},
448448
];
449449

0 commit comments

Comments
 (0)