未验证 提交 748199fd 编写于 作者: A Avi Aryan

url escape dejavu app query #66

上级 afd8a3bb
package common
import (
b64 "encoding/base64"
// b64 "encoding/base64"
"fmt"
"github.com/appbaseio/abc/log"
"net/url"
"strings"
)
......@@ -13,7 +14,8 @@ func MakeDejavuURL(appURL string) (string, error) {
hostURL := appURL[:idx]
appName := appURL[idx+1:]
jsonStr := fmt.Sprintf("{\"appname\":\"%s\",\"url\":\"%s\",\"selectedType\":[]}", appName, hostURL)
jsonStr = b64.StdEncoding.EncodeToString([]byte(jsonStr))
// jsonStr = b64.StdEncoding.EncodeToString([]byte(jsonStr))
jsonStr = url.QueryEscape(jsonStr)
url := "https://opensource.appbase.io/dejavu/live/#?app=" + jsonStr
log.Debugln(url)
// base64 encode
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册