Skip to content

Commit a397a67

Browse files
author
novnc
committed
Fix URL formatting in TCP connection response by removing trailing slash
1 parent 7893787 commit a397a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/server/tcp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (s *TCPServer) handleConnection(conn net.Conn) {
175175
}
176176

177177
// Generate URL
178-
url := fmt.Sprintf("%s/%s\n", s.config.GetBaseURL(), slugStr)
178+
url := fmt.Sprintf("%s%s\n", s.config.GetBaseURL(), slugStr)
179179

180180
// Send response
181181
writeResponse(url)

0 commit comments

Comments
 (0)