Skip to content

Commit 78735b3

Browse files
committed
fix: change connection URL response to plain string
1 parent a808fed commit 78735b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/server/router/connection.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (cr *ConnectionRouter) Get(ctx *gin.Context) {
3636
}
3737

3838
if conn.Status.Phase == tfv1.TensorFusionConnectionRunning {
39-
ctx.JSON(200, conn.Status.ConnectionURL)
39+
ctx.String(200, conn.Status.ConnectionURL)
4040
return
4141
}
4242

@@ -47,7 +47,7 @@ func (cr *ConnectionRouter) Get(ctx *gin.Context) {
4747
// Wait for connection updates
4848
for conn := range ch {
4949
if conn.Status.Phase == tfv1.TensorFusionConnectionRunning {
50-
ctx.JSON(200, conn.Status.ConnectionURL)
50+
ctx.String(200, conn.Status.ConnectionURL)
5151
return
5252
}
5353
}

0 commit comments

Comments
 (0)