We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5875b0d commit 96399cfCopy full SHA for 96399cf
server/routes.go
@@ -129,7 +129,7 @@ func (r *routesImpl) FindBackendForServerAddress(serverAddress string) string {
129
r.RLock()
130
defer r.RUnlock()
131
132
- addressParts := strings.Split(serverAddress, `\x00`)
+ addressParts := strings.Split(serverAddress, "\x00")
133
134
if r.mappings == nil {
135
return r.defaultRoute
server/routes_test.go
@@ -34,7 +34,7 @@ func Test_routesImpl_FindBackendForServerAddress(t *testing.T) {
34
serverAddress: "forge.my.domain", backend: "backend:25566",
35
},
36
args: args{
37
- serverAddress: `forge.my.domain\x00FML2\x00`,
+ serverAddress: "forge.my.domain\x00FML2\x00",
38
39
want: "backend:25566",
40
0 commit comments