I want to get the query arguments from RequestURI in golang.
The URL is like that:
http://localhost:3000/add-ebay?authToken=AgAAAA**AQAAAA**aAAAAA**6d8JWQ**nY+sHZ2PrBmdj6wVnY+sEZ2...
And my code is followings:
func CreateEbayProfile(ctx *fasthttp.RequestCtx) {
log.Println( ctx.QueryArgs().Peek("authToken"))
....
}
The result is that:
AgAAAA**AQAAAA**aAAAAA**6d8JWQ**nY sHZ2PrBmdj6wVnY sEZ2...
But I want to result like that:
AgAAAA**AQAAAA**aAAAAA**6d8JWQ**nY+sHZ2PrBmdj6wVnY+sEZ2...
How can I get the correct result? And why this is happening?