From 279ae8ad502cab4a0106585a53b9446b8da1cf04 Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 23 Apr 2023 18:32:59 +0800 Subject: [PATCH] Bug fix --- controller/relay.go | 2 +- web/src/components/ChannelsTable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/relay.go b/controller/relay.go index 886e4f0d..6fe3e9ff 100644 --- a/controller/relay.go +++ b/controller/relay.go @@ -11,7 +11,7 @@ import ( func Relay(c *gin.Context) { channelType := c.GetInt("channel") host := common.ChannelHosts[channelType] - req, err := http.NewRequest(c.Request.Method, fmt.Sprintf("%s/%s", host, c.Request.URL.String()), c.Request.Body) + req, err := http.NewRequest(c.Request.Method, fmt.Sprintf("%s%s", host, c.Request.URL.String()), c.Request.Body) if err != nil { c.JSON(http.StatusOK, gin.H{ "error": gin.H{ diff --git a/web/src/components/ChannelsTable.js b/web/src/components/ChannelsTable.js index 40181d3c..793adedb 100644 --- a/web/src/components/ChannelsTable.js +++ b/web/src/components/ChannelsTable.js @@ -281,7 +281,7 @@ const ChannelsTable = () => { - +